LoslegenKostenlos loslegen

Dribbling the pivot method

It's time to keep working with the fifa_players dataset. After you explored the dataset, you realized the dataset contains player scores on different movements: shooting, dribbling, and passing. There are attacking scores as well as overall scores.

The goal of the project is to analyze the scores to create an optimized team, so you decide to explore which score is better. But the current data is in a long format. You'll need to to pivot your DataFrame in different ways to discover a pattern.

The fifa_players dataset is available for you. Make sure to examine it in the console!

Diese Übung ist Teil des Kurses

Reshaping Data with pandas

Kurs anzeigen

Interaktive Übung

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

# Pivot fifa_players to get overall scores indexed by name and identified by movement
fifa_overall = fifa_players.____(____=____, ____=____, ____=____)

# Print fifa_overall
print(fifa_overall)
Code bearbeiten und ausführen