dataframe list of unique python code example Example: get list of unique values in pandas column a = df['column name'].unique() #returns a list of unique values