CommencerCommencer gratuitement

Working with complementary data

Your team is now ready to explore data at a more detailed level. Each game in American football is made up of discrete plays with a typical game containing around 150 plays. Your spreadsheet for punt plays has data on every punt from the 2016 and 2017 seasons.

Punts spreadsheet

You want to append the data for each play with game data: home team, visiting team, etc. You already have the play data saved to punts.csv. You also have game data saved as games.csv.

Cet exercice fait partie du cours

Pandas Joins for Spreadsheet Users

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Create data frame for punts and view
____ = pd.read_csv(____)
print(____.head(____))
Modifier et exécuter le code