1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Data Visualization with Seaborn

Connected

Exercise

Adding annotations

Each of the enhancements we have covered can be combined together. In the next exercise, we can annotate our distribution plot to include lines that show the mean and median rent prices.

For this example, the palette has been changed to bright using sns.set_palette()

Instructions

100 XP
  • Create a figure and axes.
  • Plot the fmr_1 column distribution.
  • Add a vertical line using axvline for the median and mean of the values which are already defined.