In [8]:
import pandas as pd
import seaborn as sns
sns.set(context="notebook", style="whitegrid", palette="dark")
%matplotlib inline
In [9]:
df = pd.read_csv('ex1data1.txt', names=['population', 'profit'])
In [10]:
df.head()
Out[10]:
In [11]:
df.info()
In [12]:
sns.lmplot('population', 'profit', df, size=6, fit_reg=False)
Out[12]:
In [ ]: