count unique names in a Pandas column code example Example: pandas count unique values in column df.nunique()