FunctionRacerProblemsRace

Average per Team

BeginnerseabornPython

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
The chart to draw in example 1 of Average per Team

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More seaborn problems