1. Learn
  2. /
  3. Courses
  4. /
  5. Analyzing IoT Data in Python

Exercise

Concatenate DataFrames

Let's assume you have gathered multiple datasets about your environment for the same time period, and would like to analyze them.

The first step is to combine the datasets into one, to comfortably work with them.

You'll work on combining the three DataFrames temperature, humidity, and windspeed.

Instructions

100 XP
  • Rename the columns of the DataFrames to match "temperature", "humidity" and "windspeed".
  • Create a list of DataFrames df_list containing the DataFrames temperature, humidity, and windspeed, in this order.
  • Concatenate the list of DataFrames into one and name that environment. Each DataFrame should get it's own column.
  • Print the head of the combined DataFrame.