Finance, Risk Analytics, Data Science, Machine Learning.
pca.explained_variance_ contains the eigenvalues of the covariance matrix, which represent the variance explained by each principal component. variance_ratio_df = pd.DataFrame(data=pca.explained_variance_ratio_) #pca.explained_variance_ratio_ contains the ratio of each eigenvalue to the total