Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Line plots
Multiple histograms
Other plot types
Summary
16. Quiz Question

Instruction

Alright, your task is to draw a figure with two plots!

Exercise

You are given the day-to-day changes of stock market index values in 2017 for the top 20 companies of the Warsaw Stock Exchange. Your task is to prepare the following figure:

Book sales

To do so:

  1. Use the stock_index.csv file. It contains three columns: Date, Index and Change. You are only interested in the last column.
  2. Use 16x4 dimensions when you create the figure.
  3. To rotate the histogram, use orientation='horizontal' as one of the arguments of hist().
  4. Do not set the color of the first subplot – this color is set by default in matplotlib.