Chapter 12: Using Time in pandas
In this chapter, you will focus entirely on one kind of data that is, on one hand, quite common in data analysis but, on the other hand, requires a number of special considerations – time series. pandas provides many methods specifically for working with time series. Here, you will learn about time-aware data types (such as datetime
and Timedelta
). In Chapter 13, Exploring Time Series, you will learn how to use these in the index to enable advanced capabilities such as resampling to different time intervals, interpolating, and modeling as a function of time.
You will cover the following topics as you work through this chapter:
- What are datetimes?
- Activity 12.01 – understanding power usage
- Datetime math operations