Wydaj tylko rok od daty Python

df['year'] = pd.DatetimeIndex(df['date']).year
Worried Worm