DataFrame.nUnique
Returns the number of unique elements in a column, across the specified axis.
danfo.DataFrame.nUnique(axis) [source]
Parameters
Type
Description
Default
axis
Int
0 for row axis, and 1 for column axis
1
Examples
Return number of unique values along default axis (axis=1)
Return number of unique values in row axis (axis=0)
Note: To get the unique elements along an axis, see DataFrame.unique.
Last updated