Skip to content

Commit 5ad5d89

Browse files
1 parent 3f8f704 commit 5ad5d89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/computation/ops.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ def _disallow_scalar_only_bool_ops(self) -> None:
509509

510510

511511
def isnumeric(dtype) -> bool:
512-
return issubclass(np.dtype(dtype).type, np.number)
512+
return getattr(dtype, '_is_numeric', False) or issubclass(np.dtype(dtype).type, np.number)
513513

514514

515515
class Div(BinOp):

0 commit comments

Comments
 (0)