I have a dataframe, df, that has a quarters column where I would like to add an additional increased quarters column adjacent to it (increased by 2)
Data
id date
a Q1 2022
a Q1 2022
a Q1 2022
a Q1 2022
b Q1 2022
b Q1 2022
Desired
id date new
a Q1 2022 Q3 2022
a Q1 2022 Q3 2022
a Q1 2022 Q3 2022
a Q1 2022 Q3 2022
b Q1 2022 Q3 2022
b Q1 2022 Q3 2022
Doing
df['new'] = df.index + 2
However this is not adding 2 consistently to the entire column I am still troubleshooting, any suggestion is appreciated