We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7c4911 commit 02218afCopy full SHA for 02218af
pandas/core/dtypes/cast.py
@@ -1151,10 +1151,7 @@ def convert_dtypes(
1151
else:
1152
pa_type = to_pyarrow_type(base_dtype)
1153
if pa_type is not None:
1154
- if isna(input_array).all() and hasattr(input_array, "categories"):
1155
- inferred_dtype = input_array.dtype
1156
- else:
1157
- inferred_dtype = ArrowDtype(pa_type)
+ inferred_dtype = ArrowDtype(pa_type)
1158
1159
elif dtype_backend == "numpy_nullable" and isinstance(inferred_dtype, ArrowDtype):
1160
# GH 53648
0 commit comments