Skip to content

Commit 79f4ec3

Browse files
committed
add nunique GH9548
1 parent b0a782d commit 79f4ec3

File tree

12 files changed

+909
-1571
lines changed

12 files changed

+909
-1571
lines changed

doc/api/dataarray.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ Aggregation
162162
DataArray.min
163163
DataArray.mean
164164
DataArray.median
165+
DataArray.nunique
165166
DataArray.prod
166167
DataArray.sum
167168
DataArray.std

doc/api/dataset.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ Aggregation
169169
Dataset.min
170170
Dataset.mean
171171
Dataset.median
172+
Dataset.nunique
172173
Dataset.prod
173174
Dataset.sum
174175
Dataset.std

doc/api/datatree.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ Aggregate data in all nodes in the subtree simultaneously.
266266
DataTree.min
267267
DataTree.mean
268268
DataTree.median
269+
DataTree.nunique
269270
DataTree.prod
270271
DataTree.sum
271272
DataTree.std

doc/whats-new.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ v2025.12.1 (unreleased)
1414
New Features
1515
~~~~~~~~~~~~
1616

17+
- :py:func:`combine_nested` now support :py:class:`DataTree` objects
18+
(:pull:`10849`).
19+
By `Stephan Hoyer <https://github.com/shoyer>`_.
20+
- Add :py:func:`nunique` reduction function (:issue:`9548`), which behaves like
21+
:py:func:`pandas.DataFrame.nunique` applied along specific dimensions.
22+
By `Ewan Short <https://github.com/eshort0401>`_.
23+
1724

1825
Breaking Changes
1926
~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)