1. 学习
  2. /
  3. 课程
  4. /
  5. Dimensionality Reduction in Python

Connected

练习

Removing features without variance

A sample of the Pokemon dataset has been loaded as pokemon_df. To get an idea of which features have little variance you should use the IPython Shell to calculate summary statistics on this sample. Then adjust the code to create a smaller, easier to understand, dataset.

说明 1 / 共 3 个

undefined XP
    1
    2
    3
  • Use the .describe() method to find the numeric feature without variance and remove its name from the list assigned to number_cols.