Feature Engineering, Machine Learning, Data Science, Data, Python.
relationships that might be usefully modeled with new features. X = df.copy() y = X.pop("SalePrice") X = X.loc[:, features] # `apply_pca`, defined above, reproduces the code from the tutorial pca, X_pca, loadings = apply_pca(X) print(loadings) PC1 PC2 PC3 PC4 GarageArea 0.541229 0.102375 -0.038470