傳統 vs 有機酪梨的價格比較
為不同資料子集建立多個圖表,可以用來比較各族群。在本練習中,你將建立多個直方圖,來比較傳統與有機酪梨的價格。
已將 matplotlib.pyplot 以 plt 匯入,並將 pandas 以 pd 匯入。
本練習屬於課程
使用 pandas 進行資料操作
動手互動練習
試著完成這個範例程式碼,體驗一下這個練習。
# Histogram of conventional avg_price
avocados[____][____].____
# Histogram of organic avg_price
avocados[____][____].____
# Add a legend
plt.legend(____)
# Show the plot
____