In some cases, you need to know the general direction that your data is taking when looking at a scatterplot. In this case, you add a trendline to the output.
Using numpy and matplotlib.pylab, we can make correlation of the previous example as follow.
Using homes.csv, we will try to find out the connection between listing price ("List") and homes age ("Age") by doing the following:
Make a scatterplot representing that. Make the marker square and color black.
Make a correlation line between the two variables.