Aan de slagGa gratis aan de slag

International caller

You have a new task. You will analyze the pattern of customers on international and domestic calls.

You explore the churn dataset, which contains a multi-level row index. Again, you will reshape the data, as you expect it will help you to do further analysis.

The DataFrame churn is available for you. It contains data about minutes, calls, and charge for different times of the day, types of calls, and exited status. Make sure to examine it in the console!

Deze oefening maakt deel uit van de cursus

Reshaping Data with pandas

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Reshape the churn DataFrame by unstacking
churn_unstack = ____.____

# Print churn_unstack
print(churn_unstack)
Code bewerken en uitvoeren