TypeError: strptime () L'argument 1 doit être STR, pas la série

train['date1'] = train['ID'].apply(lambda x: datetime.strptime(x, '%Y%m%d%H'))
Anxious Armadillo