I'd like to change the order of my within-group variable in a plotly bar plot in Python. For example, how can I switch the order of lunch and dinner here?
import plotly.express as px
df = px.data.tips()
fig = px.bar(df, x='sex', y='total_bill', color='time', barmode='group')
fig.show()
categoryorder can only change the order of groups, i.e. Male and Female.

