Relationships: scatter and line
Plotting two variables together.
From One Column to Two
Distributions look at a single column. Now you ask how two columns move together, which is the heart of finding a relationship.
The Scatter Plot
A scatter plot places one dot per row, using two columns as x and y. The cloud of dots reveals how the variables connect.
sns.scatterplot(data=df, x="hours", y="score")All lessons in this course
- Why seaborn Over Raw matplotlib
- Distributions: hist, kde, box
- Relationships: scatter and line
- Facets, Hue, and Style