Matplotlib
Overview
- Due:
- 11:00pm, Friday October 30, 2020
- Max grace days:
- 2
The purpose of this assignment is to plot data using Matplotlib.
Description
Complete the Jupyter notebook named main.ipynb
that reads in the file diamonds.csv
into a Pandas DataFrame. Information about the file can be found here: https://vincentarelbundock.github.io/Rdatasets/doc/ggplot2/diamonds.html
There are two figures that you need to create:
Figure 1:
- normalized histogram with 30 bins using the Fair cut diamond prices
- a line plot of the normal distribution using the mean and standard deviation of the Fair cut diamond prices
- appropriate labels on the both the x and y axes
- appropriate title
- appropriate legend
Figure 2:
- horizontal bar chart of the mean prices of the diamond cuts
- ten evenly spaced tick marks on the x axis from 0 to the maximum mean price
- appropriate labels on the x and y axes
- appropriate title
Turning in the Assignment
You must turn in a file named main.ipynb
. Submit the program source file to the appropriate folder on D2L.
Grading Criteria
Grading (out of 100 points):
- 50 points – correct figure 1
- 50 points – correct figure 2