Ausziehen nur Jahr ab Datum Python
df['year'] = pd.DatetimeIndex(df['date']).year
Worried Worm
df['year'] = pd.DatetimeIndex(df['date']).year