Exercise

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.

Instructions 1/2

undefined XP
  • 1

    Reshape the churn DataFrame by stacking the time column level. Assign the reshaped DataFrame to churn_time.

  • 2

    Now, define a reshaped DataFrame called churn_feature by stacking the feature column level of the churn DataFrame.