Python 如何设置熊猫直方图的x轴和y轴标签?

Python 如何设置熊猫直方图的x轴和y轴标签?,python,pandas,Python,Pandas,你可能会认为这是谷歌的能力,但我一直没有找到任何东西 pandas”plot函数使用matplotlib,因此您可以使用matplotlib函数set\u xlabel和set\u ylabel plot = df.plot(x="Some Data",y="Other Data",kind="hist") plot.set_xlabel("X") plot.set_ylabel("Y") 能否显示要打印的数据和要使用的函数?这可能会有帮助:

你可能会认为这是谷歌的能力,但我一直没有找到任何东西

pandas
plot
函数使用
matplotlib
,因此您可以使用
matplotlib
函数
set\u xlabel
set\u ylabel

plot = df.plot(x="Some Data",y="Other Data",kind="hist")
plot.set_xlabel("X")
plot.set_ylabel("Y")

能否显示要打印的数据和要使用的函数?这可能会有帮助: