We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 526d52f commit b1fb854Copy full SHA for b1fb854
pandas/core/reshape/tile.py
@@ -24,7 +24,7 @@
24
is_datetime_or_timedelta_dtype,
25
is_extension_array_dtype,
26
is_integer,
27
- is_integer_dtype,
+ is_numeric_dtype,
28
is_list_like,
29
is_scalar,
30
is_timedelta64_dtype,
@@ -488,7 +488,7 @@ def _coerce_to_type(x):
488
# Will properly support in the future.
489
# https://github.com/pandas-dev/pandas/pull/31290
490
# https://github.com/pandas-dev/pandas/issues/31389
491
- elif is_extension_array_dtype(x.dtype) and is_integer_dtype(x.dtype):
+ elif is_extension_array_dtype(x.dtype) and is_numeric_dtype(x.dtype):
492
x = x.to_numpy(dtype=np.float64, na_value=np.nan)
493
494
if dtype is not None:
0 commit comments