Hi I have two columns in my dataframe gender, countries
I am trying to get a bar graph of population of countries, for example: India - Male - 40 - Female-20 US - Male - 20 - Female-15 .....
I want to give custom color to male and female for example "Blue" for men and "pink" for female, How do I specify color here?
Below is my code:
a = df["Gender"]
b = a.groupby(df["Countries"]).value_counts()
b.unstack().plot.bar()
plt.xlabel("Countries")
plt.ylabel("Count of People")
plt.title("Count of genders based on their age Countries")
plt.show()
