how to sort unique values in python pandas code example Example: unique values in dataframe column #List unique values in the df['name'] column df.name.unique()