Is there any way to easily add a trendline to a plotly express line chart like there is for plotly scatter plot?
I have tried using this line to create my dataframe:
fig = px.line(df4, x=df4["DATE"], y=df4['Ratio'], title="Market Ratio", trendline='ols')
But it gives the error
TypeError: line() got an unexpected keyword argument 'trendline'
Thanks!
