Skip to content

Commit

Permalink
BUG: Added numpy.dtype_ to valid pandas_dtype() type list
Browse files Browse the repository at this point in the history
  • Loading branch information
analyticalmonk committed Apr 24, 2017
1 parent 3eaa432 commit a358181
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/dtypes/common.py
Expand Up @@ -745,7 +745,7 @@ def pandas_dtype(dtype):
np.dtype(dtype)
except (TypeError, ValueError):
raise
if dtype == object:
if dtype in [object, np.object_]:
return np.dtype(dtype)
elif np.dtype(dtype).kind == 'O':
raise TypeError('dtype {0} not understood'.format(dtype))
Expand Down

0 comments on commit a358181

Please sign in to comment.