0

Newbie trying to learn pandas(and python) here, so bear with me.

I'm trying to set up a data collecting system for a mushroom project I have going. Basically, we're harvesting daily, and want an overview of the individual yield size and the sum'ed yield from each bag. A bag is identified by 'm_id'. How to I sum all entries from each 'm_id'? It has to be done in a general way, as there potentially will be hundreds of 'm_id's.

Looking forward to your input! :)

          timestamp              m_id yield
      0   23/01/2022 11.22.25     4   130
      1   24/01/2022 11.22.32     1     9
      2   24/01/2022 11.22.41     1    10
      3   25/01/2022 11.22.54     2     8
      4   25/01/2022 11.22.59     2     3
      5   25/01/2022 11.23.11     2   5,8
      6   25/01/2022 11.23.24     2   1,6
      7   25/01/2022 11.23.29     3    20
      8   26/01/2022 11.23.40     2  34,3
      9   27/01/2022 11.27.52     2   4,6
      10  27/01/2022 11.28.01     3  14,7
      11  28/01/2022 11.28.09     3     4
      12  28/01/2022 11.28.09     3   7,5
      13  28/01/2022 11.28.09     2   9,4
      14  28/01/2022 11.28.09     1    30
      15  28/01/2022 11.28.09     1     2
      16  28/01/2022 11.28.09     1  14,3
      17  28/01/2022 11.28.09     3  22,9
      18  28/01/2022 11.28.09     3   5,6
      19  28/01/2022 11.28.09     3  13,2
      20  31/01/2022 11.29.32     4     9
      21  31/01/2022 11.29.39     4   4,8
      22  31/01/2022 11.29.45     4   2,8

0 Answers0