We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c93e69a commit 3737164Copy full SHA for 3737164
pandas/core/computation/ops.py
@@ -19,6 +19,7 @@
19
from pandas.core.dtypes.common import (
20
is_list_like,
21
is_scalar,
22
+ pandas_dtype,
23
)
24
25
import pandas.core.common as com
@@ -238,7 +239,7 @@ def return_type(self):
238
239
@property
240
def has_invalid_return_type(self) -> bool:
241
types = self.operand_types
- obj_dtype_set = frozenset([np.dtype("object"), str])
242
+ obj_dtype_set = frozenset([np.dtype("object"), str, pandas_dtype("string")])
243
return self.return_type == object and types - obj_dtype_set
244
245
0 commit comments