Labelling those black and white dots

I want to label those black and white dots as white dots represents Group 0, and black represents Group 1.

How can this be done?

Hey @ritikfbd, this can be done by using the legend argument with scatter plot. I request you to see the syntax for the same here.

I hope this helps !
Please mark the doubt as resolved in your doubts section ! :blush:
Happy Learning ! :slightly_smiling_face: