import pandas as pd
df = pd.DataFrame({'salary': [103, 89, 142, 54, 63, 219],
                   'boro': ['Manhatten', 'Queens', 'Manhatten', 'Brooklyn', 'Brooklyn', 'Bronx']})
df

pd.get_dummies(df)

df = pd.DataFrame({'salary': [103, 89, 142, 54, 63, 219],
                   'boro': [0, 1, 0, 2, 2, 3]})
df

pd.get_dummies(df, columns=['boro'])

"""
Explanation: Categorical Variables
End of explanation
"""


data = pd.read_csv("adult.csv", index_col=0)

# %load solutions/load_adult.py

"""
Explanation: Exercise
Apply dummy encoding and scaling to the "adult" dataset consisting of income data from the census.
Bonus: visualize the data.
End of explanation
"""


