I have a dataset where I would like to reduce a date column to reveal the YY vs YYYY
Data
ID Date Stat
AA11 Q1.2022 y
BB11 Q1.2022 y
BB11 Q1.2022 n
Desired
ID Date Stat
AA11 Q1.22 y
BB11 Q1.22 y
BB11 Q1.22 n
Doing
df['Date'] = df['Date'].astype(datetime).datetime[:-2]
Any suggestion is appreciated