LoslegenKostenlos loslegen

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.

Diese Übung ist Teil des Kurses

Pandas Joins for Spreadsheet Users

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Create data frame for punts and view
____ = pd.read_csv(____)
print(____.head(____))
Code bearbeiten und ausführen