FunctionRacerProblemsRace

Dots With Margins

HardseabornPython

df has columns height and weight. Use seaborn's jointplot with its default settings to draw weight against height as a scatter plot with a histogram of each column along the matching edge: height above the chart and weight at its right. The function returns a grid object, not a chart: return its figure.

Checked: the points and the bars.

Example 1

df {"height":[150,160,170,180,165],"weight":[50,58,66,80,60]}
draws
The chart to draw in example 1 of Dots With Margins

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