A running club measured its members: [height_cm, arm_span_cm, shoe_size_eu, weekly_km]. Height, arm span and shoe size all say roughly how big someone is, so some of these columns overlap.
PCA tells you how much of the variation each new direction carries.
Task: write variance_shares(rows, n_components).
StandardScaler().fit_transform(...).PCA(n_components=n_components) on the scaled data.explained_variance_ratio_ as a list of plain floats, each rounded to 3 decimal places.