In [1]:
%matplotlib inline
In [3]:
import csv
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
sns.set_context('talk')
sns.set_style('whitegrid')
In [16]:
def get_data(path='../fixtures/sizes.csv'):
with open(path, 'r') as f:
reader = csv.reader(f)
return pd.DataFrame([
{
'category': row[0].split('/')[0],
'size': int(row[1]),
}
for row in reader if len(row) > 1
])
data = get_data()
data['size'].mean()
Out[16]:
In [12]:
sns.distplot(data['size'], rug=False)
Out[12]:
In [13]:
data.boxplot()
Out[13]: