Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

TypeError: strptime() argument 1 must be str, not Series

train['date1'] = train['ID'].apply(lambda x: datetime.strptime(x, '%Y%m%d%H'))
 
PREVIOUS NEXT
Tagged: #argument #Series
ADD COMMENT
Topic
Name
6+7 =