I would need to rearrange the column value on column: "Quarter" . Expected output should be as in column:"new_Quarter"
I got the column:"Quarter" from column:"Date" using the below code
df['Quarter'] = pd.PeriodIndex(df['Date'], freq='Q')
I tried to get the target column:"new_Quarter" using below code but getting an error
df['new_Quarter'] = q['Quarter'].str.slice(4,6) + ' ' + q['Quarter'].str.slice(2,4)
TypeError: ufunc 'add' did not contain a loop with signature matching types dtype('
