unique values from list code example
Example 1: python list with only unique values
my_list = list(set(my_list))
Example 2: pandas unique values to list
df.groupby('param')['column'].nunique().sort_values(ascending=False).unique().tolist()
my_list = list(set(my_list))
df.groupby('param')['column'].nunique().sort_values(ascending=False).unique().tolist()