pandas return values column unique to list 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()