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