Working with Date and Datetime Data
Learn how to work with the different formats and operations for datetime objects in Python and pandas.
We'll cover the following...
The datetime
library
The basic Python package datetime
(again, in lowercase) is specifically created to work with dates and times. It helps with things such as adding time intervals to dates (like adding X weeks to a date), extracting the month or day from a date, and working with time zones.
Press + to interact
Objects and methods
date
: Allows us to work with a date object.datetime
: Like the date object, but ...