Skip to content

Instantly share code, notes, and snippets.

@roymartinezblanco
Created July 31, 2020 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roymartinezblanco/887c02c7d33e9ab6a09a58e220e2d5b5 to your computer and use it in GitHub Desktop.
Save roymartinezblanco/887c02c7d33e9ab6a09a58e220e2d5b5 to your computer and use it in GitHub Desktop.
Third Party Timings
tmp = dat_clean
tmp = tmp[tmp['host-type'] == 'Third Party']
tmp = tmp[["host", "send","ttfb", "receive"]]
tmp = tmp.groupby('host')[ "send", "ttfb", "receive"].mean().reset_index()
tmp.plot(x="host", kind="bar", stacked=True,label='Series')
plt.title('Third Party Timings')
plt.xlabel('Domains')
plt.ylabel('Milliseconds')
plt.show()
del tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment