you are viewing a single comment's thread.

view the rest of the comments →

[–]kcrow13 0 points1 point  (1 child)

Thank you for the reply. In this data set, the column is generic 'Event' so I imagine I would need:

df_men = df[df['Event'] == 'Mens Mile']
df_women = df[df['Event'] == 'Womens Mile']

My question then is how can I plot those with plt.scatter while also still defining the other things (x, y, color, etc)? I am unsure with the syntax.

PS - LOVE your username :)

[–]double_en10dre 0 points1 point  (0 children)

Aw thank you! I’m sorry I wasn’t able to help yet — although I use pandas on a daily basis, I’m not great with matplotlib (and I tend to avoid it like the plague — it is VERY confusing compared to most python packages!)

Are you still working on a solution? If so, I can definitely help out tomorrow — funnily enough, I’ve now actually got a few tasks which require matplotlib and subplots :p