how to find unique id from one column with respective columns in pandas code example Example: dataframe unique values in each column for col in df: print(df[col].unique())