A Title for the Chart
A seaborn chart is a matplotlib chart, so everything you know about ax still works. df has columns height and weight. Draw a seaborn scatter plot of weight against height, then give the chart the title title. Draw it on a chart made with fig, ax = plt.subplots() by passing ax=ax, and return the figure.
Checked: the points, the title, the x label and the y label.
Example 1
df {"height":[150,160,170,180],"weight":[50,58,66,80]}
title "Class of 2026"
draws

Constraints
1 <= len(df) <= 40
Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.
More seaborn problems
- Average per TeamBeginner
- Boxes per TeamBeginner
- Dots From a TableBeginner
- How Many of EachBeginner
- Line From a TableBeginner
- Shape of a ColumnBeginner
- Table as ColorsBeginner
- A Line per CityEasy