Skip to content

Add nuniqueΒ #9548

Open
Open
@dcherian

Description

Is your feature request related to a problem?

From #9544 (comment)

Though perhaps we should add nunique along a dimension implemented as sort along axis, succeeding-elements-are-not-equal along axis handling NaNs, then sum along axis.

xref pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.nunique.html

I think I'd add it to https://github.com/pydata/xarray/blob/main/xarray/util/generate_aggregations.py

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions