loop through dataframe column and return unique value

Solutions on MaxInterview for loop through dataframe column and return unique value by the best coders in the world

showing results for - "loop through dataframe column and return unique value"
Hannah
30 Jun 2018
1which_columns = ... # specify the columns whose unique values you want here
2
3uniques = {col: df[col].unique() for col in which_columns}