I am calculating the correlation matrix for a dataset in Python Spyder using the command df.corr(). However, the output shows the matrix values only for the first two and the last two columns. What command should I use so that I can get the entire matrix?
I am using the pandas package for calculation the correlation matrix of a given dataset.
The code I used for calculating the correlation matrix is:
correlation_matrix = df.corr()
print(correlation_matrix)
The result of this is that the correlation matrix values for the first two columns and the last two columns are getting displayed. I want the entire matrix to be displayed.