import pandas as pd colors = {'color': ['green', 'blue', 'blue', 'red', 'green']} df = pd.DataFrame.from_dict(colors) print(df['color'].unique())