“TypeError: strpTime () argumento 1 debe ser STR, no en lista” Código de respuesta

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

TypeError: strpTime () argumento 1 debe ser STR, no en lista

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)
Official SK

Respuestas similares a “TypeError: strpTime () argumento 1 debe ser STR, no en lista”

Preguntas similares a “TypeError: strpTime () argumento 1 debe ser STR, no en lista”

Más respuestas relacionadas con “TypeError: strpTime () argumento 1 debe ser STR, no en lista” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código