There's more...

  • The correlation coefficients found using the simplified code gives the exact same values but also gives the correlation of price with itself, which turns out to be a value of 1.0000, as expected. This is illustrated in the following screenshot:
  • The coefficients of correlation plotted using the seaborn library are presented in the following screenshots. Note that price is on the x-axis for each plot:
 Plotting of coefficients ...

Get Apache Spark Deep Learning Cookbook 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.