Skip to content

Instantly share code, notes, and snippets.

@roymartinezblanco
Created July 31, 2020 15:00
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/7c31d483bd567c0d46fbb4e48ffd90bf to your computer and use it in GitHub Desktop.
Save roymartinezblanco/7c31d483bd567c0d46fbb4e48ffd90bf to your computer and use it in GitHub Desktop.
Cache Status
tmp = dat_clean
tmp = tmp[tmp['host'] == domain]
tmp = tmp.groupby(['cdn-cache']).size().reset_index(name='Count')
plt.pie(tmp['Count'],shadow=False,autopct='%1.1f%%')
plt.legend( tmp['cdn-cache'], loc="best")
plt.title('Cache Status')
plt.axis('equal')
plt.tight_layout()
plt.show()
del tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment