get unique values of a column to dict pandas code example Example: dataframe python unique values rows # get the unique values (rows) df.drop_duplicates()