I FIGURED IT OUT!!!
I used legendgroups=name
.
fig = go.Figure()
fig = make_subplots(rows=2, cols=1)
for name, color in zip(names, colors):
fig.add_traces(go.Bar(x=df_table[df_table['model']==name]['snapshot'],
y = df_table[df_table['model']==name]['MAPE'],
name=name, marker_color=color,
showlegend=True,
legendgroup=name),
rows=1, cols=1)
fig.add_traces(go.Bar(x=df_table[df_table['model']==name]['snapshot'],
y = df_table[df_table['model']==name]['BIAS'],
name=name, marker_color=color,
showlegend=False,
legendgroup=name),
rows=2, cols=1,
)
Thank you for all the help!