Suppose I have two very simple arrays with numpy: I would like to find which slice of array reference has the highest pearson’s correlation coefficient with array probe. To do that, I would like to slice the array reference using some sort of sub-arrays that are overlapped in a for loop, which means I shift one element at a time
Tag: pearson-correlation
how to specify data on pearson correlation heatmap?
I have a pearson correlation heat map coded, but its showing data from my dataframe which i dont need. is there a way to specify which columns i’d like to include? thanks in advance Answer You can filter the dataframe before calculating correlation