LoslegenKostenlos loslegen

Text me!

You are making progress in your customer's project. Now, you need to analyze a new dataset to find differences in the messages and gigabytes (GB) of data the customers use during the daytime and nighttime.

To that aim, you will reshape your dataset churn using different levels. The advantage of your new dataset is that the column indices have names.

The DataFrame churn is available for you. It contains data about state, city, text messages and total GB during day and night time.

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.

# Stack churn by the time column level
churn_time = ____.____(____=____)

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