Scatter plot

To produce a scatter plot with pandas, all you have to do is to use the plot namespace. Within the plot namespace, you have a scatter() method and pass an x value and a y value:

We see here that we have a positive relationship between the 1stFlrSF of the house and the SalePrice of the house. So, the 1stFlrSF variable is plotted on the x axis, the SalePrice variable on the y axis, and we can see here clearly that there is a positive relationship between these two variables; the more 1stFlrSF you have, the higher the likely sale price of the house.

Seaborn also provides us with a nice function called jointplot, which will give ...

Get Become a Python Data Analyst now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.