Dummy or One Hot Encoding code with pandas

35

df_nominal_dummy=pd.get_dummies(df_cate_nominal,drop_first=True)
df_nominal_dummy.head(5) 
# COLUMN NAME will be same as "df_cate_nominal"(df_cate_nominal,drop_first=True))

Comments

Submit
0 Comments