get list of unique values in pandas column 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: pandas unique values to list
df.groupby('param')['column'].nunique().sort_values(ascending=False).unique().tolist()