Grupa według kolumny, liczba innych kolumn

gen_deg_b1 = gen_deg.groupby('Gender').sum()
Chunxiao Wang