I have two bars in that I plotted from a csv column. The column name is 'sex' and the values are 0 for male and 1 for female. this is my code:
df = pd.read_csv("file.csv")
df['sex'].value_counts().plot(kind='bar')
plt.show()
I want instead of having 0 and 1 for each bar, I would like to change it the 'Male' and 'Female' respectively.
The output I get is: