INPUT DATA-
array([['00:00:00', 20, 15.27],
['00:15:00', 20, 9.07],
['00:30:00', 20, 7.33],
...,
['00:30:00', 407, 34.0],
['00:00:00', 407, 172.0],
['00:10:00', 407, 187.0]], dtype=object)
First column - time second column - id third column - price
60k+ rows
Need to find sum of price per id for each time.
I am trying to work without the GROUPBY function
How can I achieve this? I've been trying using this.
result={}
for t,id,price in trial.inputs():
result[t]={}
if id not in result[t]:
result[t][id]=0
result[t][id]+=price
print (result)