FunctionRacerProblemsRace

Tallest First

EasyseabornPython

A ranking reads best sorted. df has columns team and score. With seaborn, show each team's mean score as a bar (errorbar=None), placing the teams from the highest mean on the left to the lowest on the right. No two means are equal. 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,41,50]}
draws
The chart to draw in example 1 of Tallest First

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