I want to use the subplots and plot some graphs, but I can’t make out the color bars. The first chart I made with plotly express, but I can’t replicate it using plotly objects. This is the code I’m using
df_economic_classes = (
train_df
.groupby('economic_classes')['survived_or_not']
.value_counts(normalize=True)
.rename('percent')
.mul(100)
.reset_index()
)
fig = make_subplots(rows=2 , cols=3)
fig.add_trace(
go.Bar(
x=df_economic_classes.economic_classes,
y=df_economic_classes.percent),
1,
1,
)
fig.show()
Sorry for my english, it’s not my language.