![](/img/trans.png)
[英]I want to swap x-axis and y-axis and change this graph to horizontal graph python
[英]python pandas: how to switch x-axis with y-axis for a line graph
在繪圖之前嘗試轉置 DataFrame:
data.set_index('Branch').T.plot()
plt.show()
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.