Skip to content

Instantly share code, notes, and snippets.

@shinokada
Created June 24, 2020 03:46
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 shinokada/7bd29c9821481833f054ca1a77902f62 to your computer and use it in GitHub Desktop.
Save shinokada/7bd29c9821481833f054ca1a77902f62 to your computer and use it in GitHub Desktop.
import plotly.express as px
fig = px.bar(df, x="race", color="gender",
y='value',
title="A Grouped Bar Chart With Plotly Express in Python",
barmode='group',
height=700,
facet_row="gender"
)
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment