Categorical variables and standardization

Preprocessing for 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 for Machine Learning in Python

Standardization

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

Let's practice!

Preprocessing for Machine Learning in Python

Preparing Video For Download...