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

data = pd.read_csv('../input/heart.csv', sep=',')
data = data.sort_values(by=['age'])
data['genderText'] = ['male' if 1 == each else 'female' for each in data.sex]

data.head()