Skip to content

Commit 17b373d

Browse files
committed
changed float with object
1 parent 6a54ac4 commit 17b373d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/groupby/groupby.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2440,7 +2440,7 @@ def pre_processor(vals: ArrayLike) -> tuple[np.ndarray, np.dtype | None]:
24402440
inference = np.dtype("timedelta64[ns]")
24412441
out = np.asarray(vals).astype(float)
24422442
elif isinstance(vals, ExtensionArray) and is_float_dtype(vals):
2443-
inference = np.dtype(np.float64)
2443+
inference = np.dtype(object)
24442444
out = vals.to_numpy(dtype=float, na_value=np.nan)
24452445
else:
24462446
out = np.asarray(vals)

0 commit comments

Comments
 (0)