-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
API DesignExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.
Milestone
Description
Categorical.copy passes values=self._codes.copy()
, and doesn't have a deep=False
kwarg (which the base ExtensionArray does). This is causing trouble in #26954. Is this intentional @TomAugspurger?
Pandas-internal EAs with copy
behavior not respecting deep
kwarg:
- Categorical (no kwarg at all)
- DatetimeLike (ignores kwarg)
- PandasArray
IntegerArray, IntervalArray, and SparseArray look correct.
Metadata
Metadata
Assignees
Labels
API DesignExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.