[英]What is the best way to plot numerical Y axis, X axis Time series for a categorical variable in Python?
[英]How to plot categorical variables on x axis vs a numerical variable? Looking to make an area plot
似乎您的分類變量被設置為索引,您想重置它以便您可以將其用作列。
#reset the index
areaData.reset_index()
areaData.plot.area(y='Badassery')
請參閱有關 Pandas 面積圖的文檔。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.