I am trying to calculate the Pearson coefficient for all columns in my dataframe but when I try to make a heatmap I return Nan values in rows with zeroes in them. Any suggestions on how to fix it? Here is the screenshot of the code and output below:
#Calculate the correlation coefficients
corr = dfno.corr(method ='pearson')
#plot it in the next line
corr.round(2).style.background_gradient(cmap='coolwarm')