Skip to content

Commit

Permalink
Call pd.api.types.is_integer_dtype() when dtype conversion fails
Browse files Browse the repository at this point in the history
  • Loading branch information
shwina committed Apr 13, 2021
1 parent 7225564 commit b4eefa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cudf/cudf/utils/dtypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ def is_integer_dtype(obj):
try:
dtype = np.dtype(obj)
except TypeError:
return False
return pd.api.types.is_integer_dtype(obj)
return dtype.kind in "iu"


Expand Down

0 comments on commit b4eefa0

Please sign in to comment.