October 2018
Beginner to intermediate
676 pages
18h 30m
English
Here are the steps necessary to plot our graphs:
fig, (ax1, ax2) = plt.subplots(1, 2, figsize=[8, 4])
wine_quality = pd.read_csv('winequality.csv', delimiter=';')corr_wine = wine_quality.corr()
extended_image = np.zeros([100, 100], dtype="d")ny, nx = corr_wine.shapeextended_image[25:25 + ny, 25:25 + nx] = corr_wine
extent = [-2, 2, -3, 1]ax1.imshow(extended_image, extent=extent, interpolation="nearest", origin="lower")
Read now
Unlock full access