Essentially, I am parsing through a pandas DF, and am looking to be able to use .loc() to change values if certain conditions are met. Below, is a working example
Main.loc[Main['Discrepancy Description'].str.contains('test test),'ATA'] = 'Working test'
This will look through my 'Discrepancy Description' column, and for any cells containing "test test", will replace all ATA values with "working test"
How do I add a second conditional? For example, if the Discrepancy Description equals 'test test' AND ATA=3000, replace all ATA values with 'working test'
Thanks