d_city = pd.get_dummies(df_bank['City'], prefix = "City") df_bank = [df_bank, d_city] df_bank = pd.concat(df_bank, axis = 1)