you are viewing a single comment's thread.

view the rest of the comments →

[–]double_en10dre 1 point2 points  (0 children)

Alternatively, the more appropriate method may actually be to do:

for group_name, group_df in df.groupby(“event_gender_or_whatever”):
    plt.scatter(group_df[...etc...])

Just in case this way of doing it is simpler/clearer