MENU

Fun & Interesting

How do I work with dates and times in pandas?

Data School 188,372 lượt xem 8 years ago
Video Not Working? Fix It Now

Let's say that you have dates and times in your DataFrame and you want to analyze your data by minute, month, or year. What should you do? In this video, I'll demonstrate how you can convert your data to "datetime" format, enabling you to access a ton of convenient attributes and perform datetime comparisons and mathematical operations.

SUBSCRIBE to learn data science with Python:
https://www.youtube.com/dataschool?sub_confirmation=1

JOIN the "Data School Insiders" community and receive exclusive rewards:
https://www.patreon.com/dataschool

== RESOURCES ==
GitHub repository for the series: https://github.com/justmarkham/pandas-videos
"to_datetime" documentation: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.to_datetime.html
Datetime properties and methods: http://pandas.pydata.org/pandas-docs/stable/api.html#datetimelike-properties

== LET'S CONNECT! ==
Newsletter: https://www.dataschool.io/subscribe/
Twitter: https://twitter.com/justmarkham
Facebook: https://www.facebook.com/DataScienceSchool/
LinkedIn: https://www.linkedin.com/in/justmarkham/

Comment