Change the position of categorical columns to adapt to the em.mix input form.

prepare_df_for_em(df, col_cat)

Arguments

df

Original dataframe

col_cat

Categorical columns index in df

Value

Dataframe where the categorical columns are the first columns