def print_zipf(data): print(len(data)) plt.bar(range(len(data)),[math.log2(t[1]) for t in data]) # In[6]: