How to rename the variables (i.e. "fiber","protein","potass") in the legend and also in the hover text? screenshot here
fig=px.scatter(df,x=["fiber","protein","potass"],y="rating",trendline="ols",
labels={"rating":"Rating (%)"},
hover_name="name")
These three variables have their own columns, which is why the x data is a list.
I've tried editing the labels but it didn't change anything in the plot.