Hello here,
is there a way to set the color of px.scatter with values of two different colors? i’ve looked in internet but i didn’t find somthing.
Example of what i’m looking for:
df = pd.DataFrame(
{
"A": [2,8,7,9,6],
"B": ["F", "P", "P", "P", "P"],
"C": [1,7,9,6,1],
"D": ["F", "P", "P", "P", "F"],
}
)
fig = px.scatter(df, x="A",y="C", **for color I want to have something like** color=['B','D'])
Is there a way to go?