DAT210x - Programming with Python for DS

Module3 - Lab1


In [ ]:
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib

In [ ]:
# Look pretty...

# matplotlib.style.use('ggplot')
plt.style.use('ggplot')

Load up the wheat seeds dataset into a dataframe. We've stored a copy in the Datasets directory.


In [ ]:
# .. your code here ..

Create a slice from your dataframe and name the variable s1. It should only include the area and perimeter features.


In [ ]:
# .. your code here ..

Create another slice of from dataframe called it s2 this time. Slice out only the groove and asymmetry features:


In [ ]:
# .. your code here ..

Create a histogram plot using the first slice, and another histogram plot using the second slice. Be sure to set alpha=0.75.


In [ ]:
# .. your code here ..

In [ ]:
# Display the graphs:
plt.show()

In [ ]: