Skip to content

Commit d416587

Browse files
committed
BUG: EWM silently failed float32
1 parent 28ff1e8 commit d416587

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/frame.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4279,6 +4279,8 @@ def check_int_infer_dtype(dtypes):
42794279
# error: Argument 1 to "append" of "list" has incompatible type
42804280
# "Type[signedinteger[Any]]"; expected "Type[signedinteger[Any]]"
42814281
converted_dtypes.append(np.int64) # type: ignore[arg-type]
4282+
elif dtype == "float":
4283+
converted_dtypes.extend([np.float64, np.float32])
42824284
else:
42834285
# error: Argument 1 to "append" of "list" has incompatible type
42844286
# "Union[dtype[Any], ExtensionDtype]"; expected

0 commit comments

Comments
 (0)