0
I have a dataframe filter:
F 3257703
M 2256044
with the code below I was able to display the graphic in pizza:
porcentagemSexo = sexo.value_counts(normalize=True)
rotulo = sexo.unique()
plt.pie(porcentagemSexo, labels = rotulo, autopct='%1.1f%%')
plt.title('Porcentagem de Homens e Mulheres )
plt.show()
but I would like to rename the labels that are like’M' and 'F' for 'Male' and 'Female'
Edith question and add method code
sexo.unique()
– Augusto Vasques