FunctionRacerProblemsRace

Bars That Say Their Number

HardseabornPython

df has columns team and score. Draw a seaborn bar chart of the mean score per team without error bars, and write each bar's value above it with one decimal, using matplotlib's bar_label. Use an ax you create and return the figure.

Checked: the bars, the x tick labels and the texts.

Example 1

df {"team":["red","blue","red","blue","red"],"score":[10,20,30,41,50]}
draws
The chart to draw in example 1 of Bars That Say Their Number

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