Hi, I am plotting a simple scatter plot with two y-axis variables (individual traces). I would like to fit a "trendline=“ols” to only one of the traces. Is that possible?
import pandas as pd
import plotly as plt
import plotly.express as px
import plotly.io as pio
data = pd.read_csv(r"somedata.csv")
plot = px.scatter(data, x=“Cx”, y=[“Tm”,“Tg”], trendline=“ols”)
This gives a plot with two ols traces for each trace (“Tm” and “Tg”).
Can I either remove one of the ols trendlines, or replace one of the ols trendlines with a trendline=“lowess” ?