Skip to content

Instantly share code, notes, and snippets.

@roymartinezblanco
Created July 31, 2020 14:51
Show Gist options
  • Save roymartinezblanco/7b4ef6777ebea0b9d25bf284d0dc9d6b to your computer and use it in GitHub Desktop.
Save roymartinezblanco/7b4ef6777ebea0b9d25bf284d0dc9d6b to your computer and use it in GitHub Desktop.
Third Party by Content Size
tmp = dat_clean
tmp = tmp[tmp['host-type'] == 'Third Party']
tmp = tmp.groupby('host')[ "content-length"].mean().reset_index()
tmp[["host", "content-length"]].plot(x="host", kind="bar", stacked=True,label='Series')
plt.title('Third Party by Content Size')
plt.xlabel('Domains')
plt.ylabel('Content Length')
plt.show()
del tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment