loop through all unique values in all columns pandas 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}