Have a question about PCA method in selecting important features.
So, let's assume that there is a dataset with 15 features and I want to understand the 5 most important features from the whole set. What I'm doing:
from sklearn.decomposition import PCA
x=scale(df)
pca = PCA(n_components=5)
df_t = pca.fit_transform(df)
df_t.explained_variance_ratio_
So finally I have an array with 5 explained variance. But for what features does it go? For first five from the dataset? Or for the most important? And if so, how can I understand the names of these features?