Clustering, Data Analysis.
sklearn.preprocessing import StandardScaler pt = StandardScaler() X_num = pd.DataFrame(pt.fit_transform(data2)) X_num.head() Output: X_num.columns = predname_num X_num.head() Output: Pengecekan korelasi corrtest1 = data1.corr().abs() corrtest2 = X_num.corr().abs() #Membuang nilai redundan pada