Session Ready
Exercise

Rename and reorder variables

In the previous exercise, you renamed all the variables in ratings that end with "7day" and kept only a subset of variables. In this exercise, you'll adapt that code to drop some specific columns, while keeping and reordering other columns.

Instructions 1/2
undefined XP
  • 1

    Drop the ten columns that contain 28-day viewer data and keep all the viewers_7day_ variables in the front.

    • 2

      Adapt your code to keep the original order of variables now, while still renaming the variables with the 7-day data using viewers_7day_ and dropping the ten columns that contain 28-day viewer data as in the previous step.