FunctionRacerProblemsRace

Bars, Curve and Mean

HardseabornPython

df has a column wait. Build one chart from three layers on the same ax:

1. a seaborn histogram of wait with bins bins, scaled as a density (stat="density"),
2. a seaborn kernel density curve of wait with default settings, a smooth version of the histogram,
3. a vertical line across the chart at the mean of wait.

Return the figure.

Checked: the bars and the lines.

Example 1

df {"wait":[3,1,4,1,5,9,2,6]}
bins 4
draws
The chart to draw in example 1 of Bars, Curve and Mean

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