Data Science, Factor Analysis, Data, Machine Learning, Statistics.
information captured in the second principal component. Here’s how you can inspect the loadings. import pandas as pd from statsmodels.multivariate.pca import PCA # Load dataset dataset = pd.read_csv('dataset.csv') pca = PCA(dataset, standardize=True, method='eig') loadings = pca.loadings