ComeçarComece de graça

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!

Este exercício faz parte do curso

Reshaping Data with pandas

Ver curso

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

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

# Print fifa_overall
print(fifa_overall)
Editar e executar o código