CommencerCommencer gratuitement

Suffixes and indicators

Well, it seems the scatter plot hasn't settled any wagers. And source data in the merged data frame isn't as helpful as you expected: it's hard to tell what data is current and what is from the past when players were drafted. merged data frame

It's time to use some of those optional parameters for .merge() and clarify the data. current and draft are still available from the last exercise.

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.

# Merge data frames and view the result
players = ____.merge(draft, how='outer', ____=True,  ____='player_id')
print(____.head())
Modifier et exécuter le code