Is it possible to draw a trendline with Plotly line graph?
figure = px.line(x=year_week, y=num_accidents,
labels=dict(time_from_db="Time",
num_accidents="Num of Accidents"),
title="Number of Accidents Per Week", line_shape='spline',
trendline="ols")
The above code does not work unless I remove trendline="old".