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