Skip to content

Instantly share code, notes, and snippets.

@roymartinezblanco
Created July 31, 2020 15:01
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/fbfeb9f15622711fc6480868c22e1cf4 to your computer and use it in GitHub Desktop.
Save roymartinezblanco/fbfeb9f15622711fc6480868c22e1cf4 to your computer and use it in GitHub Desktop.
Cache Status by ext
tmp = dat_clean
tmp = tmp[tmp['host'] == domain]
tmp = tmp.groupby(['cdn-cache','ext']).size().reset_index(name='Count')
tmp = tmp.reset_index().pivot(columns='ext', index='cdn-cache', values='Count')
tmp.plot.bar();
plt.title('Cache Status by ext')
plt.xlabel('Domain/Ext')
plt.ylabel('Count')
plt.show()
del tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment