I have a dataframe like this.
ID X Y CLASS
A 123 456 0
A 789 121 1
A 456 333 1
B 111 123 1
B 156 123 1
C 167 189 1
C 567 789 1
I want to group the same values for 'id' and make different scatter plots based on the xy axis in the same figure. Right now, I am using
groups = df.groupby('id')
This makes separate groups and manually plotting for different id's but I'd like to do plot all the scatters in a single image and separate them based on the class. Sorry if the question is too 'noob'. Thanks for your time.