-6

I Tried to plot graph using plot() function in pandas:

fd.plot(x= 'values', y='locations', title='Evoqua', kind='hist', figsize=(6,6))

but it failed to get labels on x and y axis?

Seanny123
  • 8,776
  • 13
  • 68
  • 124

1 Answers1

0

The DataFrame.plot() method returns a matplotlib.axes.AxesSubplot object, so you can add labels to it like in matplotlib:

ax = fd.plot(x='values', y='locations', title='Evoqua', kind='hist', figsize=(6, 6))

ax.set_xlabel("x label")
ax.set_ylabel("y label")
JE_Muc
  • 5,403
  • 2
  • 26
  • 41