Dapatkan daftar nilai unik di kolom panda
a = df['column name'].unique() #returns a list of unique values
TheRubberDucky
a = df['column name'].unique() #returns a list of unique values
df.groupby('param')['column'].nunique().sort_values(ascending=False).unique().tolist()
mylist = ['nowplaying', 'PBS', 'PBS', 'nowplaying', 'job', 'debate', 'thenandnow']
myset = set(mylist)
print(myset)
mynewlist = list(myset)
#['nowplaying', 'PBS', 'job', 'debate', 'thenandnow']