SUMIFS in python jupyter
问题 I have this dataframe. This is a transaction of exchange goods. So basically the client can switch into those goods which have the same quality or lower. So for Client 1 on 16/08/2019, 360 B grade goods switch into 180 B and 180 A goods. This needs to be flagged. I can do this in excel, however, the file is too big and it crashes. In/Out Client Quality Date GoodsAmount In 1 A 16/08/2019 180 In 1 B 16/08/2019 180 Out 1 B 16/08/2019 360 In 2 C 14/08/2019 130 Out 2 B 14/08/2019 45 Out 2 C 14/08