Working with time series in Python
In this section, we’ll give a brief introduction to Python and its ecosystem for time series. We’ll go through a few of the basics with data loading for time series and plotting.
Python has a lot of tools for time series, such as datetime
, time
, and calendar
. At the same time, there are many different data types which can be highly confusing for beginners.
These are important data types for time series:
datetime
: This is a Python standard library class. It represents a single moment in time.date
: This is a Python standard library class. It represents a single day.time
: This is a Python standard library class. It represents a single time of day.timedelta
: This is a Python standard library class. It represents a duration of time.tzinfo
: This is a Python standard library class. It represents a time zone.relativedelta
: This is a third-party library class. It represents a duration of time relative to another datetime.
There’s a...