Using the heights_weights_genders.csv, analyze the difference between the height weight correlation in women and men.
In [1]:
import pandas as pd
%matplotlib inline
In [2]:
df = pd.read_csv("heights_weights_genders.csv")
In [3]:
df.head()
Out[3]:
In [9]:
male_df = df[df['Gender']=='Male']
graph_male = male_df.plot(kind='scatter',y='Weight',x='Height')
In [10]:
male_df.corr()
Out[10]:
In [11]:
female_df = df[df['Gender']=='Female']
female_df.plot(kind='scatter',y='Weight',x='Height')
Out[11]:
In [12]:
female_df.corr()
Out[12]:
In [ ]: