In [1]:
import bigbang.ietfattendance as ia
import pandas as pd

In [2]:
alld = ia.all_attendance()

In [3]:
iso_counts = alld.groupby(['mn','ISO 3166 Code']).count()['First Name'].reset_index()

In [4]:
counts = iso_counts.pivot(index='mn',
                          columns='ISO 3166 Code',
                          values='First Name').fillna(0)

In [5]:
topn = 10

topn_counts = counts[counts.sum().sort_values(ascending=False)[:topn].index]

In [6]:
ax = topn_counts.plot(title="Attendance at IETF meetings by country code")
ax.set_xlabel("IETF Meeting Number")


Out[6]:
Text(0.5, 0, 'IETF Meeting Number')

In [ ]: