pd.to_datetime(df['DATE'], errors= 'coerce', format='%Y%m%d') didn't work correctly

I don't know how using:

pd.to_datetime(df['DATE'], errors= 'coerce', format='%Y%m%d')

convert this date "202212 1" to valid date 2022-12-01 instead of NaT



from Recent Questions - Stack Overflow https://ift.tt/3f6Q6Kn
https://ift.tt/eA8V8J

Comments

Popular posts from this blog

Today Walkin 14th-Sept

Spring Elasticsearch Operations

Hibernate Search - Elasticsearch with JSON manipulation