Good substitute for px.add_line

Hi all,

I’m attempting to append a line chart to a plotly express scatter plot figure.

figure = px.scatter(dff[[‘a’, ‘b’, ‘c’]].dropna(),
x = ‘a’,
y = ‘b’,
text = ‘c’,
hover_data = [‘a’, ‘b’],
color = dff[‘c’],
x = dff[‘a’],
y = dff[‘c’],


I’m not able to achieve the same effect when using ‘figure.add_trace(…))’

I’m having a hard time understanding why a) figure.add_bar is different than figure.add_trace( and also if there’s a similar function that achieves what figure.add_bar does but in creating a line graph.

Thank you