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 ..
If you loaded the id
column as a feature (hint: you shouldn't have!), then be sure to drop it.
In [ ]:
# .. your code here ..
Compute the correlation matrix of your dataframe:
In [ ]:
# .. your code here ..
Graph the correlation matrix using imshow
or matshow
:
In [ ]:
# .. your code here ..
In [ ]:
# Display the graphs:
plt.show()
In [ ]: