TypeError: strptime () argumento 1 debe ser str, no series
train['date1'] = train['ID'].apply(lambda x: datetime.strptime(x, '%Y%m%d%H'))
Anxious Armadillo
train['date1'] = train['ID'].apply(lambda x: datetime.strptime(x, '%Y%m%d%H'))
words= ['donkey','hero']
with open('5.txt') as f:
hello=f.read()
for word in words:
hello=hello.replace(words,'^dfsdf')
with open ('5.txt','w')as f:
f.write(hello)