Skip to content

Instantly share code, notes, and snippets.

@databyjp
Last active March 16, 2020 07:08
Show Gist options
  • Save databyjp/e1731b063643d6c5b5f5ca6fa405eba4 to your computer and use it in GitHub Desktop.
Save databyjp/e1731b063643d6c5b5f5ca6fa405eba4 to your computer and use it in GitHub Desktop.
# Complaints by company & date
fig = px.histogram(top_comps_df, x='datetime', template='plotly_white', title='Complaint counts by date'
, color='Company', nbins=6, log_y=True, barmode='group')
fig.update_xaxes(categoryorder='category descending', title='Date').update_yaxes(title='Number of complaints')
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment