Skip to content

Commit

Permalink
Use distinct_count instead of super().nunique in single_column_frame
Browse files Browse the repository at this point in the history
Co-authored-by: Ashwin Srinath <[email protected]>
  • Loading branch information
martinfalisse and shwina authored Jan 31, 2022
1 parent 7291d3a commit 90c2c0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/cudf/cudf/core/single_column_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,4 +353,4 @@ def nunique(self, method: builtins.str = "sort", dropna: bool = True):
int
Number of unique values in the column.
"""
return sum(super().nunique(method=method, dropna=dropna).values())
return self._column.distinct_count(method=method, dropna=dropna)

0 comments on commit 90c2c0e

Please sign in to comment.