FunctionRacerProblemsRace

Share Below Each Value

MediumseabornPython

A histogram depends on its bins. The cumulative view does not: for every value it shows the share of the data at or below it, as a staircase from 0 to 1. df has a column wait (minutes). Draw that staircase with seaborn. Use an ax you create and return the figure.

Checked: the lines and the x label.

Example 1

df {"wait":[3,1,4,1,5]}
draws
The chart to draw in example 1 of Share Below Each Value

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