Pandas/Python: Set value of one column based on value in another column
Set value of one Pandas column based on value in another column Question: 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 else: df[‘c2’] = df[‘c3’] I am unable to get this to do …