for cat_column in CAT_COLUMNS:
    dummy_df = pd.get_dummies(df[column])
dummy_df.columns = [('%s_%s' % (cat_column, col)) for col in dummy_df.columns]
df = pd.concat([df, dummy_df], axis=1)
Convert NumPy arrays to Pandas Dataframe with columns