1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Dimensionality Reduction in Python

Connected

अभ्यास

Manual feature extraction II

You're working on a variant of the ANSUR dataset, height_df, where a person's height was measured 3 times: height_1, height_2, height_3. Add a feature with the mean height to the dataset, then drop the 3 original features.

निर्देश

100 XP
  • Add a feature with the mean height to the dataset. Use the .mean() method with axis=1.
  • Drop the 3 original height features from the dataset.