Clustering, Data Analysis.
[column for column in upper2.columns if any(upper2[column] > 0.7)] #menghapus kolom yang korelasinya >0.7 data1 = data1.drop(to_drop1, axis=1) data2 = data1.drop(to_drop2, axis=1) Menggabungkan data1 dan X_num data_combined = pd.concat([data1, X_num], axis=1, join='inner') data_combined Output: