Average per Team
df has columns team and score, with several rows per team. Draw a bar chart with one bar per team showing the team's mean score, with seaborn and without error bars (errorbar=None). seaborn works out the means itself. Draw it on a chart made with fig, ax = plt.subplots() by passing ax=ax, and return the figure.
Checked: the bars and the x tick labels.
Example 1
df {"team":["red","blue","red","blue","red"],"score":[10,20,30,40,50]}
draws

Constraints
- 2 to 5 teams,
len(df) <= 60
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More seaborn problems
- Boxes per TeamBeginner
- Dots From a TableBeginner
- How Many of EachBeginner
- Line From a TableBeginner
- Shape of a ColumnBeginner
- Table as ColorsBeginner
- A Line per CityEasy
- Bars by Two KeysEasy