I had wanted to filter 1 and -1 correlations from my dataframe but I have realised that some of the correlations slightly bigger than 1 and lower than -1.
I couldn't find what is the real reason behind that. I have put subset of the dataframe here.
ModelID      RPL23A         ST13
ACH-001196  -4.384573196    0.025759764
ACH-000054  -4.384573196    0.025759764
ACH-001050  -4.384573196    0.025759764
ACH-000505  -4.81558301     0.44097594
ACH-001794  -4.384573196    0.025759764
example code:
df = pd.read_csv('test.csv',index_col=0)
corr = df.corr()
and if I want to filter 1 correlations, I can not
corr[corr == -1.0]
and I checked what is the reason behind that, it seems they are not -1
corr.stack().reset_index().astype(str)


 
    