Skip to content

Commit f91586f

Browse files
author
analyticalmonk
committed
BUG: Added numpy.dtype_ to valid pandas_dtype() type list
1 parent 739c4d2 commit f91586f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/dtypes/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ def pandas_dtype(dtype):
745745
np.dtype(dtype)
746746
except (TypeError, ValueError):
747747
raise
748-
if dtype == object:
748+
if dtype in [object, np.object_]:
749749
return np.dtype(dtype)
750750
elif np.dtype(dtype).kind == 'O':
751751
raise TypeError('dtype {0} not understood'.format(dtype))

0 commit comments

Comments
 (0)