We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ead3ca8 commit 3b93186Copy full SHA for 3b93186
pandas/core/dtypes.py
@@ -72,6 +72,8 @@ def is_dtype(cls, dtype):
72
dtype = dtype.dtype
73
if isinstance(dtype, cls):
74
return True
75
+ elif isinstance(dtype, np.dtype):
76
+ return False
77
try:
78
return cls.construct_from_string(dtype) is not None
79
except:
0 commit comments