Skip to content

Commit b1fb854

Browse files
committed
Updated qcut for Float64DType
1 parent 526d52f commit b1fb854

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/reshape/tile.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
is_datetime_or_timedelta_dtype,
2525
is_extension_array_dtype,
2626
is_integer,
27-
is_integer_dtype,
27+
is_numeric_dtype,
2828
is_list_like,
2929
is_scalar,
3030
is_timedelta64_dtype,
@@ -488,7 +488,7 @@ def _coerce_to_type(x):
488488
# Will properly support in the future.
489489
# https://github.com/pandas-dev/pandas/pull/31290
490490
# https://github.com/pandas-dev/pandas/issues/31389
491-
elif is_extension_array_dtype(x.dtype) and is_integer_dtype(x.dtype):
491+
elif is_extension_array_dtype(x.dtype) and is_numeric_dtype(x.dtype):
492492
x = x.to_numpy(dtype=np.float64, na_value=np.nan)
493493

494494
if dtype is not None:

0 commit comments

Comments
 (0)