Question: I have a issue in generating pearson and spearman correlation and generating heatmap only using numpy and scipy. when i worked on pairplot, it gave
I have a issue in generating pearson and spearman correlation and generating heatmap only using numpy and scipy. when i worked on pairplot, it gave me right result, however when i extend the same for heat map, it doesnt work. However when i use seaborn and pandas, i get the desired output. I am not sure where the mistake is can you guide with correct commands in python
Ex: these are numpy data
columnsofinterest
xdata x: columnsofinterest
variables T ECFD
when i use pandas:
i create dataframe : pdDataframexdata,columnsvariables
after that, i can find correlation values for pearson and spearman and plot heatmap
however, numpy and scipy is not working. it generates Nan Value. for the same data, why seaborn and pandas work and not numpy and scipy. do i need to do anything in the data set.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
