pandas dataframe show nunique values in column code example Example: how to count unique values in a column dataframe in python dataframe.column.nunique()