how to assign a list of values on base of where condition pandas dataframe code example Example: set value based on column df.loc[df['c1'] == 'Value', 'c2'] = 10