Skip to content
Prev Previous commit
Next Next commit
Ensure comparison with string
  • Loading branch information
heoh authored Jun 23, 2025
commit ddd7e3bf163b030638b7782005059e9191aaa66b
2 changes: 1 addition & 1 deletion pandas/core/dtypes/cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ def convert_dtypes(
elif (
infer_objects
and input_array.dtype == object
and inferred_dtype == "floating"
and (isinstance(inferred_dtype, str) and inferred_dtype == "floating")
):
inferred_dtype = pandas_dtype_func("Float64")

Expand Down
Loading