How to list unique rows in a Pandas DataFrame? code example
Example 1: get list of unique values in pandas column
a = df['column name'].unique() #returns a list of unique values
Example 2: dataframe python unique values rows
# get the unique values (rows)
df.drop_duplicates()
Example 3: pandas unique values to list
df.groupby('param')['column'].nunique().sort_values(ascending=False).unique().tolist()