Skip to content

Commit

Permalink
add column.n_unique (#337)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Dec 7, 2023
1 parent fed1a69 commit 44331de
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/API_specification/dataframe_api/column_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,6 +750,17 @@ def var(
"""
...

def n_unique(self, *, skip_nulls: bool = True) -> Scalar:
"""Return number of unique values.
Notes
-----
If the original column(s) contain multiple `'NaN'` values, then
they only count as one distinct value.
Likewise for null values (if ``skip_nulls=False``).
"""
...

def cumulative_max(self) -> Self:
"""Reduction returns a Column.
Expand Down

0 comments on commit 44331de

Please sign in to comment.