A simple question:
Instead of expliciting categories every time in plotly express, like:
fig = px.box(df, x="x_var", y="y_var",
category_orders={'x_var': ["categorie_1",
"categorie_2",
...
"categorie_n"]})
fig.show()
Can plotly inherit categorical order already setted in pandas? like:
df['x_var'] = pd.Categorical( df['x_var'],
categories = ["categorie_1",
"categorie_2",
...
"categorie_n"],
ordered=True)
So in the end will be just:
fig = px.box(df, x="x_var", y="y_var")
fig.show()

