0

i stuck with such problem: i have dataset:

   Name   Year   patent_count   authors
3  Riti   2010        3            2
4  Riti   2010        3            3
5  Aadi   2012        2            1 
6  Aadi   2012        2            3

and i need to groupby this dataframe by Name, Year, patent_count and sum authors to get in conclusion Dataframe like this:

   Name   Year   patent_count   authors
3  Riti   2010        3            5
6  Aadi   2012        2            4

i tried to do it usind pandas groupby.sum(), but it doesn't work

this is real dataset this what i get after group by

0 Answers0