I have some problems with my result:
dataCorr = data.corr(method='pearson')
dataCorr = dataCorr[abs(dataCorr) >= 0.7].stack().reset_index()
dataCorr = dataCorr[dataCorr.level_0!=dataCorr.level_1]
From my correlation matrix:
dataCorr = data.corr(method='pearson')
I convert this matrix to columns:
dataCorr = dataCorr[abs(dataCorr) >= 0.7].stack().reset_index()
And after I remove diagonal line of matrix:
dataCorr = dataCorr[dataCorr.level_0!=dataCorr.level_1]
But I still have duplicate pairs
level_0 level_1 0
LiftPushSpeed RT1EntranceSpeed 0.881714
RT1EntranceSpeed LiftPushSpeed 0.881714
How avoid this problem?