FunctionRacerProblemsRace

Every Point in Its Lane

EasyseabornPython

A bar hides how many rows stand behind it. df has columns team and score. Draw every row as a dot with seaborn, the dots of each team stacked in one straight vertical lane above the team's name (no sideways jitter). Draw it on a chart made with fig, ax = plt.subplots() by passing ax=ax, and return the figure.

Checked: the points 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 Every Point in Its Lane

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