Categorical variables and standardization

Preprocessing voor Machine Learning in Python

James Chapman

Curriculum Manager, DataCamp

Categorical variables

    state country       type
295    az      us      light
296    tx      us  formation
297    nv      us   fireball
  • One-hot encoding: pd.get_dummies()
Preprocessing voor Machine Learning in Python

Standardization

  • .var()
  • np.log()
Preprocessing voor Machine Learning in Python

Let's practice!

Preprocessing voor Machine Learning in Python

Preparing Video For Download...