Skip to content

Commit 78c8d83

Browse files
committed
BUG: EWM silently failed float32
1 parent 7963422 commit 78c8d83

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
@@ -4280,6 +4280,8 @@ def check_int_infer_dtype(dtypes):
42804280
# error: Argument 1 to "append" of "list" has incompatible type
42814281
# "Type[signedinteger[Any]]"; expected "Type[signedinteger[Any]]"
42824282
converted_dtypes.append(np.int64) # type: ignore[arg-type]
4283+
elif dtype == "float":
4284+
converted_dtypes.extend([np.float64, np.float32])
42834285
else:
42844286
# error: Argument 1 to "append" of "list" has incompatible type
42854287
# "Union[dtype[Any], ExtensionDtype]"; expected

0 commit comments

Comments
 (0)