Extraire seulement l'année de la date Python
df['year'] = pd.DatetimeIndex(df['date']).year
Worried Worm
df['year'] = pd.DatetimeIndex(df['date']).year