I would like to change the column days (which is a datetime column) conditional on the indicator column, i.e. when indicator is equal to either DTM or AMC, I would like to add 1 day to the days column.
import pandas as pd
df = pd.DataFrame({'days': [1, 2, 3],
'indicator': ['BMO', 'DTM','AMC']})
So the result looks like this:
days indicator
0 1 BMO
1 3 DTM
2 4 AMC