Pandy przekonwertują kolumnę daty na rok i miesiąc

df['StartDate'].dt.to_period('M')

result:

0    2021-08
1    2021-08
2    2021-08
peamdev