FunctionRacerProblemsRace

Boxes per Team

BeginnerseabornPython

df has columns team and score. Draw a box plot with one box per team with seaborn's default settings, to compare how the scores of each team are spread. Draw it on a chart made with fig, ax = plt.subplots() by passing ax=ax, and return the figure.

Checked: the lines and the x tick labels.

Example 1

df {"team":["red","red","red","red","red","blue","blue","blue","blue","blue"],"score":[1,2,3,4,5,2,4,6,8,30]}
draws
The chart to draw in example 1 of Boxes 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