@pagal_guy wrote:
hello,
In python we can do one hot encoding by:
#One-hot-encoding features ohe_feats = ['gender', 'signup_method', 'signup_flow', 'language', 'affiliate_channel', 'affiliate_provider', 'first_affiliate_tracked', 'signup_app', 'first_device_type', 'first_browser'] for f in ohe_feats: df_all_dummy = pd.get_dummies(df_all[f], prefix=f) df_all = df_all.drop([f], axis=1) df_all = pd.concat((df_all, df_all_dummy), axis=1)
However I could not find any packages in R to do the same simply.
Can someone help me with the apt library in R to achieve this
Posts: 1
Participants: 1