FunctionRacerProblemsRace

Bars per Panel

HardseabornPython

df has columns team, year and score. Use seaborn's catplot to draw the mean score per team as bars, without error bars, in one chart per year side by side. Every chart must show the teams in alphabetical order. The function returns a grid object, not a chart: return its figure.

Checked: the title, where each chart sits, the bars and the x tick labels.

Example 1

df {"team":["red","red","blue","blue"],"year":["2025","2026","2025","2026"],"score":[10,20,30,40]}
draws
The chart to draw in example 1 of Bars per Panel

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