In [1]:
import pandas as pd
import matplotlib.pyplot as plt
%matplotlib inline
In [6]:
df = pd.read_table("tagged.tsv")
print df.shape
plt.figure(figsize=(10, 8))
df['selected'].value_counts().plot(kind="pie")
Out[6]:
In [13]:
#plt.figure(figsize=(10, 8))
fig, ax = plt.subplots(1, 2, figsize=(16, 8))
df[df.year == 2015]['selected'].value_counts().plot(kind="pie", ax=ax[0])
ax[0].set_title('PyCon 2015')
df[df.year == 2016]['selected'].value_counts().plot(kind="pie", ax=ax[1])
ax[1].set_title('PyCon 2016')
Out[13]: