find first value in one column and change another column from that value code example Example: set value based on column df.loc[df['c1'] == 'Value', 'c2'] = 10