[英]How do I set x and y axis labels for pandas histograms?
您可能會認為這是 Google 支持的,但我找不到任何東西。
pandas
的plot
函數使用matplotlib
,因此你可以使用matplotlib
函數set_xlabel
和set_ylabel
plot = df.plot(x="Some Data",y="Other Data",kind="hist")
plot.set_xlabel("X")
plot.set_ylabel("Y")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.