Finding the dimension with highest variance using scikit-learn PCA
I need to use pca to identify the dimensions with the highest variance of a certain set of data. I'm using scikit-learn's pca to do it, but I can't identify from the output of the pca method what are the components of my data with the highest variance. Keep in mind that I don't want to eliminate those dimensions, only identify them. My data is organized as a matrix with 150 rows of data, each one with 4 dimensions. I'm doing as follow: pca = sklearn.decomposition.PCA() pca.fit(data_matrix) When I print pca.explained_variance_ratio_ , it outputs an array of variance ratios ordered from highest