In [14]:
import pandas as pd
%matplotlib inline
In [15]:
simpsons = pd.read_csv("simpsons.csv")
In [16]:
simpsons
Out[16]:
In [17]:
def gender_classifier(weight):
if weight<=160:
return "Female"
else:
return "Male"
In [18]:
gender_classifier(290)
Out[18]:
In [ ]: