Skip to content

Instantly share code, notes, and snippets.

@DerekHawkins
Created July 28, 2021 18:20
Show Gist options
  • Save DerekHawkins/7078e3280d59d6b50c44768aced41573 to your computer and use it in GitHub Desktop.
Save DerekHawkins/7078e3280d59d6b50c44768aced41573 to your computer and use it in GitHub Desktop.
pivot = log_file.pivot_table(index='date', values='server_response',
aggfunc={'server_response':'count'}).rename(columns={'server_response':'crawls'})
fig = go.Figure(data=go.Scatter(x=pivot.index, y=pivot.crawls, mode='lines'))
fig.update_layout(title='Crawl Rate: example.com',
xaxis_title='Date',
yaxis_title='Number of Pings by Search Engine')
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment