Now that we know how to slice data and extract various subsets, let's discuss how to operate on time series data. You can filter the data in many different ways. The pandas library allows you to operate on time series data in any way that you want.
Operating on time series data
Getting ready
In this recipe, we will use data contained in a .txt file and load it. Then, we will filter the data using a certain threshold to extract only a portion of the starting dataset that meets specific requirements.
How to do it...
Let's see how we can operate on time series data...