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 b14bf93 commit 2206e5cCopy full SHA for 2206e5c
pandas/core/arrays/categorical.py
@@ -449,7 +449,7 @@ def __init__(
449
if isinstance(values.dtype, ArrowDtype) and issubclass(
450
values.dtype.type, CategoricalDtypeType
451
):
452
- arr = getattr(values, "array", values)._pa_array.combine_chunks()
+ arr = extract_array(values)._pa_array.combine_chunks()
453
categories = arr.dictionary.to_pandas(types_mapper=ArrowDtype)
454
codes = arr.indices.to_numpy()
455
dtype = CategoricalDtype(categories, values.dtype.pyarrow_dtype.ordered)
0 commit comments