I am looking for the exact year of the calendar week:

```
data = {'Date': ['31.12.2022','01.01.2023','02.01.2023','31.12.2023','01.01.2024','02.01.2024','31.12.2024','01.01.2025','02.01.2025']}
df = pd.DataFrame(data)
df['Date'] = pd.to_datetime(df['Date'], format="%d.%m.%Y")
df['Week'] = df['Date'].dt.isocalendar().week
df['YearWeek'] = df['Date'].dt.strftime('%y%V')
df['Year'] = df['Date'].dt.year
df['Year_1'] = (df['Date']+pd.to_timedelta(6-df['Date'].dt.weekday, unit='d')).dt.year
df

```

result:

```
    Date     Week   YearWeek Year   Year_1
0   2022-12-31  52  2252    2022    2023
1   2023-01-01  52  2352    2023    2023
2   2023-01-02  1   2301    2023    2023
3   2023-12-31  52  2352    2023    2023
4   2024-01-01  1   2401    2024    2024
5   2024-01-02  1   2401    2024    2024
6   2024-12-31  1   2401    2024    2025
7   2025-01-01  1   2501    2025    2025
8   2025-01-02  1   2501    2025    2025

```

but I need YearWeek 2252 for 2023-01-01 (Row 1) or YearWeek 2501 for 2024-12-31 (Row 6).
What did I wrong?