January 2019
Beginner to intermediate
336 pages
7h 58m
English
Let's move on to building our model. We will start by identifying our numerical and categorical variables. We study the correlations using the correlation matrix and the correlation plots.
# See the variables and their data typesdf_housingdata.dtypes
# We pass 'pearson' as the method for calculating our correlationdf_housingdata.corr(method='pearson')
# we store the correlation matrix output in a variablepearson = df_housingdata.corr(method='pearson') ...