Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phofl committed Oct 1, 2023
1 parent f0836eb commit 0812174
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pandas/core/dtypes/cast.py
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,11 @@ def convert_dtypes(
base_dtype = np.dtype(str)
else:
base_dtype = inferred_dtype
if base_dtype.kind == "O" and len(input_array) > 0 and isna(input_array).all():
if (
base_dtype.kind == "O"
and len(input_array) > 0
and isna(input_array).all()
):
import pyarrow as pa

pa_type = pa.null()
Expand Down

0 comments on commit 0812174

Please sign in to comment.