how to get last of unique value in a pandas colum code example
Example 1: how to get distinct value in a column dataframe in python
df.column.unique()
Example 2: pandas unique values to list
df.groupby('param')['column'].nunique().sort_values(ascending=False).unique().tolist()