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