Session Ready
Exercise

Separating and resampling

With pandas, you can resample in different ways on different subsets of your data. For example, resampling different months of data with different aggregations. In this exercise, the data set containing hourly temperature data from the last exercise has been pre-loaded.

Your job is to resample the data using a variety of aggregation methods. The DataFrame is available in the workspace as df. You will be working with the 'Temperature' column.

Instructions
100 XP
  • Use partial string indexing to extract temperature data for August 2010 into august.
  • Use the temperature data for August and downsample to find the daily maximum temperatures. Store the result in august_highs.
  • Use partial string indexing to extract temperature data for February 2010 into february.
  • Use the temperature data for February and downsample to find the daily minimum temperatures. Store the result in february_lows.