FunctionRacerProblemsRace

A Histogram per Group

HardseabornPython

df has columns score and class_name. Use seaborn's displot to draw one histogram of score per class, side by side in one row, all with the same bins bins, so the shapes can be compared directly. The function returns a grid object, not a chart: return its figure.

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

Example 1

df {"score":[50,60,70,80,55,65,90,40],"class_name":["A","A","A","A","B","B","B","B"]}
bins 4
draws
The chart to draw in example 1 of A Histogram per Group

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