1. Learn
  2. /
  3. Courses
  4. /
  5. Pandas Joins for Spreadsheet Users

Exercise

Basic inner joins

It's possible that weather during a game is correlated with concussions. Looking at the weather data, you see it includes only the 2017 season. Even so, you want to join the data for games covered by both datasets.

The data frames of interest, games_places and weather_2017 are already loaded.

Instructions

100 XP
  • View the first 5 lines of each data frame.
  • Join the data to include only games contained in both datasets.
  • View the data frame shapes to see the effect.