get distinct values pandas series code example
Example: pandas unique values to list
df.groupby('param')['column'].nunique().sort_values(ascending=False).unique().tolist()
df.groupby('param')['column'].nunique().sort_values(ascending=False).unique().tolist()