diff --git a/file_load.py b/file_load.py index 47b559e..3ec6645 100644 --- a/file_load.py +++ b/file_load.py @@ -81,9 +81,13 @@ def corelation(): que={} for i in data: for j in data: - try: - que[i,j]=data[i].corr(data[j]) - except: - pass + if i!=j: + try: + que[i,j]=data[i].corr(data[j]) + que[j,i]=que[i,j] + except: + pass + else: + break return que