I'm working on a classification problem using a dataset containing 39 attributes (38 independent features + the class attribute). When I try to calculate the correlation matrix the class attribute is not taken into consideration. To my knowledge, it should be included in the matrix as well.
len(heartdata.columns)
39
Since the number of columns in my dataframe is 39 then the correlation matrix should be of shape (39,39) but what I get is:
cor = heartdata.corr()
cor.shape
(38, 38)
