Python pandas converting string to date datatype

preview_player
Показать описание
In this video we will see how string columns convert to date data type also timestamp values convert to date datatype.
And how to pass null values when there is invalid record using to_datetime parameter errors='coerce'
Рекомендации по теме
Комментарии
Автор

Thank you so much man, you have no idea, how much you have helped me, I was trying to look for this answer for last 7 hours, going through GITHUB, Stack overflow and what not, your simple line of code helped me in just few seconds, thank you so much, may god bless you

jasher_adithela
Автор

thank you so much! it even works with the word strings

jessylnc
Автор

Thank you for your explanation, it's really interesting. I want to know if we get a series of data corresponding to a date for instance :
20/2/2019 = 10
21/2/2019 =47
.
.
.
10/11/2019= 98
We want to make a sum or mean of Data for a periode of 10 days or monthly or year.


Can you help me?


Thanks

ahmedsoumahoro
Автор

I have my time in the millisecond format, ex. 19:10:45.173.629. How can I convert this date and make sure that I do not remove milli seconds and convert to date type.

christopherjoy