I have example dataframe in yearly granularity:
df = pd.DataFrame({ "date": ["2020-01-01", "2021-01-01", "2022-01-01"]