[FEA] DataFrame and Index nunique #9611
Labels
feature request
New feature or request
good first issue
Good for newcomers
Python
Affects Python cuDF API.
Milestone
In Pandas, DataFrame.nunique returns Series in which each row index corresponds to a column name in the original dataframe and the value corresponds to the number of distinct elements in that column. The Index methods behave like the Series method.
We already have the machinery to run this with
{DataFrame, SingleColumnFrame}._reduce
, but it would be nice to expose this as a top level API on DataFrame (and Index). The Series and Groupby APIs are already implemented.The text was updated successfully, but these errors were encountered: