TypeError: strptime() argument 1 must be str, not numpy.datetime64 site:stackoverflow.com code example
Example: TypeError: strptime() argument 1 must be str, not Series
train['date1'] = train['ID'].apply(lambda x: datetime.strptime(x, '%Y%m%d%H'))
train['date1'] = train['ID'].apply(lambda x: datetime.strptime(x, '%Y%m%d%H'))