text_plain_output_1.png
import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

df = pd.read_csv('../input/Big_Cities_Health_Data_Inventory.csv')

df.columns

cols_to_Encode = ['Gender', 'Race/ Ethnicity', 'Indicator Category']
continuous_cols = ['Indicator', 'Year', 'Value']

encoded_cols = pd.get_dummies(df[cols_to_Encode])

df_final = pd.concat([encoded_cols, df[continuous_cols]], axis=1)

df_encoded = pd.get_dummies(df[cols_to_Encode])

df_encoded.head()