I'm currently working on python Dataframes, using Pandas. And I need to create a specific dataframes using another.
The first Dataframes looks like this
Index | Value
______|_______
0 | 1.1
0 | 0.3
1 | 1
2 | 0.2
2 | 3
2 | 1.3
I need to create a other dataframes, using groupby() and cumsum(). I want the cumsum() to be a vector.
The result should look like this :
Index | Value
______|_______
0 | [1.1 , 1.4]
1 | [1]
2 | [0.2 , 3.2 , 4.5]
But i can't find a way to use groupby() and cumsum() to do this right.
Does someone as a clue ?