I need to calculate the sum of several elements in different lists (from index 0).
lista1 = [154,12,998,147]
lista2 = [897,123,998,59877]
lista3 = [3,789,111,555,699]
This would be the simplistic way:
soma = lista1[0]+lista2[0]+lista3[0]
But I need to extract the values and apply the methods rolling().sum()
lista4 = pd.Series([154,897,3])
lista4.rolling(2).sum()
something like that !!