Umwandeln
# example for year only. just lead with int. no astype needed.
int(pd.Timestamp.today().strftime('%Y'))
# 2022
Agrius
# example for year only. just lead with int. no astype needed.
int(pd.Timestamp.today().strftime('%Y'))
# 2022