Skip to content

ExtensionArray.value_counts #22843

Open
Open
@TomAugspurger

Description

@TomAugspurger

Is this required? Right now

if is_extension_array_dtype(values) or is_sparse(values):
# handle Categorical and sparse,
result = Series(values)._values.value_counts(dropna=dropna)
assumes that it's implemented, but we don't document / implement it by default, so we end up with an AttributeError at runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AlgosNon-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diffDeprecateFunctionality to remove in pandasDocsExtensionArrayExtending pandas with custom dtypes or arrays.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions