Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 697fb32

Browse files
committedApr 16, 2021
Updated qcut for Float64DType
1 parent 79741d1 commit 697fb32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎pandas/core/reshape/tile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
is_datetime_or_timedelta_dtype,
2020
is_extension_array_dtype,
2121
is_integer,
22-
is_integer_dtype,
22+
is_numeric_dtype,
2323
is_list_like,
2424
is_scalar,
2525
is_timedelta64_dtype,
@@ -483,7 +483,7 @@ def _coerce_to_type(x):
483483
# Will properly support in the future.
484484
# https://github.com/pandas-dev/pandas/pull/31290
485485
# https://github.com/pandas-dev/pandas/issues/31389
486-
elif is_extension_array_dtype(x.dtype) and is_integer_dtype(x.dtype):
486+
elif is_extension_array_dtype(x.dtype) and is_numeric_dtype(x.dtype):
487487
x = x.to_numpy(dtype=np.float64, na_value=np.nan)
488488

489489
if dtype is not None:

0 commit comments

Comments
 (0)
Please sign in to comment.