'Seaborn with multiple Columns [duplicate]

I have a dataframe data_gender:

gender math_score reading_score writing_score avg_score
female 63.63 72.61 72.47 69.57
male 68.73 65.47 63.31 65.84

and I want to make a seaborn barplot that looks like this plot that I made with matplotlib with simple line

data_gender.plot.bar(figsize=(8,6))

matplotlib bar plot

How would one do it with seaborn?



Solution 1:[1]

sns.barplot(x='gender', y='score', hue='course', data=data_gender)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Amit Tripathi