You could just set the ylabel
by calling pylab.ylabel
:
pylab.ylabel('')
or
pylab.axes().set_ylabel('')
In your example, plt.axes().set_ylabel('')
will not work because you dont have import matplotlib.pyplot as plt
in your code, so plt
doesn’t exist.
Alternatively, the groups.plot
command returns the Axes
instance, so you could use that to set the ylabel
:
ax=groups.plot(kind='pie', shadow=True)
ax.set_ylabel('')