CommencerCommencer gratuitement

One-to-many joins

You think it might be helpful to take a look at punt plays because of their potential for concussions. A typical NFL game has 8-10 punts. Here is the spreadsheet you created. punts

You'd like to join this dataset with the stadium data you previously created. It seems like a great opportunity for a one-to-many join. The datasets are saved to separate csv files, stadiums.csv and punts.csv.

This exercise is meant to provide a first glance at one-to-many joins before taking a deeper look later in the course.

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 stadiums and view
____ = pd.read_csv(____)
print(stadiums.head(5))
Modifier et exécuter le code