loop pandas df unique values in column code example
Example: loop through dataframe column and return unique value
which_columns = ... # specify the columns whose unique values you want here
uniques = {col: df[col].unique() for col in which_columns}