We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c5f4ca commit 1999ec8Copy full SHA for 1999ec8
pandas/core/arrays/categorical.py
@@ -452,7 +452,7 @@ def __init__(
452
if isinstance(values, Index):
453
arr = values._data._pa_array.combine_chunks()
454
else:
455
- arr = values._pa_array.combine_chunks()
+ arr = extract_array(values)._pa_array.combine_chunks()
456
categories = arr.dictionary.to_pandas(types_mapper=ArrowDtype)
457
codes = arr.indices.to_numpy()
458
dtype = CategoricalDtype(categories, values.dtype.pyarrow_dtype.ordered)
0 commit comments