I need to set the value of one column based on the value of another in a Pandas dataframe. This is the logic:
if df[\'c1\'] == \'Value\': df[\'c2\'] = 10
try:
df['c2'] = df['c1'].apply(lambda x: 10 if x == 'Value' else x)