Let's play with the Anscombe Quartet (a special, artificial data set). First import some plotting libaries again and make that the plots look nice
In [1]:
%pylab inline
import matplotlib.pyplot as plt
#use a nicer plotting style
plt.style.use(u'fivethirtyeight')
print(plt.style.available)
#change figure size
pylab.rcParams['figure.figsize'] = (10, 6)
Now let's import the data and use box plots to get an overview.
In [3]:
import pandas as pd
aq=pd.read_csv('data/anscombesQuartet.csv')
In [5]:
aq
Out[5]:
In [ ]:
aq.describe()
In [ ]:
plot(aq['I_x'], aq['I_y'],'o')
figure()
plot(aq['II_x'], aq['II_y'],'o')
figure()
plot(aq['III_x'], aq['III_y'],'o')
figure()
plot(aq['IV_x'], aq['IV_y'],'o')
In [ ]:
In [ ]: