I plot a piechart using pyplot.
import pylab
import pandas as pd
test = pd.Series(['male', 'male', 'male', 'male', 'female'], name="Sex")
test = test.astype("category")
groups = test.groupby([test]).agg(len)
groups.plot(kind='pie', shadow=True)
pylab.show()
The result:
However, I'm unable to remove the label on the left (marked red in the picture). I already tried
plt.axes().set_xlabel('')
and
plt.axes().set_ylabel('')
but that did not work.