Skip to content

Instantly share code, notes, and snippets.

@DerekHawkins
Created July 28, 2021 18:11
Show Gist options
  • Save DerekHawkins/abe022806d5d497a6c1d94293f5a75ad to your computer and use it in GitHub Desktop.
Save DerekHawkins/abe022806d5d497a6c1d94293f5a75ad to your computer and use it in GitHub Desktop.
import plotly.graph_objects as go
pivot = log_file.pivot_table(index='status_code', values='server_response',
aggfunc={'server_response':'count'})
fig = go.Figure(data=[go.Pie(labels=pivot.index, values=pivot.server_response)])
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment