Matplotlib
Last updated
Was this helpful?
Last updated
Was this helpful?
參考資料:()
plt.hist(list)
plt.scatter(speed, dist)
plt.plot(speed, dist)
plt.boxplot(list)
plt.savefig(filename = 'test.png', format = 'png')
注意:當 histogram 畫出這種圖 (只出現一條,但是 x 軸延伸很長導致右邊有一大片空白時,代表右邊有值但是數量稀少。這時可以考慮用 value_counts 去找到這些數值
app_train['columnsName'].value_counts().sort_index(ascending = False)