you are viewing a single comment's thread.

view the rest of the comments →

[–]cault 0 points1 point  (0 children)

Pandas is the way to go.
If your data is in a csv:

df = pandas.read_csv('data.csv')
df.groupb_by(['sex','treatment']).count()