FunctionRacerProblemsRace

Long Names Sideways

EasyseabornPython

Long names fit better down the side. df has columns team and score. Turn the usual seaborn chart of mean scores on its side: the team names along the y axis and each mean as a horizontal bar reaching right, with errorbar=None. Draw it on a chart made with fig, ax = plt.subplots() by passing ax=ax, and return the figure.

Checked: the bars and the y 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 Long Names Sideways

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