text_html_output_1.png
import pandas as pd

import pandas as pd
df = pd.read_csv('../input/adult-census-income/adult.csv')

low = '<=50K'
y = df['income'].apply(lambda x: 0 if x == low else 1)
y.head(5)