MulaiMulai sekarang secara gratis

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.

Latihan ini adalah bagian dari kursus

Dimensionality Reduction in Python

Lihat Kursus

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Remove the feature without variance from this list
number_cols = ['HP', 'Attack', 'Defense', 'Generation']
Edit dan Jalankan Kode