I have this data, and I want to plot a line for Age vs Predicted Probability for each Obs.
Age Predicted Probability Obs
18.0 0.206 3.0
15.0 0.206 3.0
34.0 0.154 3.0
52.0 0.124 3.0
46.0 0.146 3.0
18.0 0.000 2.0
15.0 0.000 2.0
34.0 0.000 2.0
52.0 0.098 2.0
46.0 0.002 2.0
18.0 0.000 1.0
15.0 0.000 1.0
34.0 0.004 1.0
52.0 0.078 1.0
46.0 0.006 1.0
18.0 0.038 0.0
15.0 0.032 0.0
34.0 0.384 0.0
52.0 0.318 0.0
46.0 0.348 0.0
I did this through the following code in seaborn:
sns.lineplot(data=df, x="Age", y="Predicted Probability", hue = 'Obs')
Using the hue argument. But I don't want a different color for each line. In fact I want a black line for each Obs. How can I do this?
