1. Learn
  2. /
  3. Courses
  4. /
  5. Data Science Visualization - Module 2

Exercise

Exercise 1: Customizing plots - watch and learn

To make the plot on the right in the exercise from the last set of assessments, we had to reorder the levels of the states' variables.

Instructions

100 XP
  • Redefine the state object so that the levels are re-ordered by rate.
  • Print the new object state and its levels (using levels) so you can see that the vector is now re-ordered by the levels.