I created a pandas dataframe sample and it tried to sum for every 3 rows: import pandas as pd import numpy as np d={‘A’:[100,110,120,175,164,169,155,153,156,200]} df=pd.DataFrame(d) A 0 100 1 110 2 120 3 175 4 164 5 169 6 155 7 153 8 156 9 200 0 NaN 1 NaN 2 330.0 #this is the […]

- Tags "c")) nan=a+b+c nan=a+b+c 330.0=a+b+c 405.0=a+b+c 459.0=a+b+c 508.0=a+b+c 488.0=a+b+c 477.0=a+b+c 464.0=a+b+c 509.0=a+b+c PS: a, 110, 120, 153, 155], 156, 164, 169, 175, 200]} df=pd.DataFrame(d) A 0 100 1 110 2 120 3 175 4 164 5 169 6 155 7 153 8 156 9 200 0 NaN 1 NaN 2 330.0 #thi, a, and c replaced with the number from the dataframe I don't know if it possible with pandas library or just do it with python library only. I', B, dtype: float64 And i want to display the equation process like this: NaN NaN 330.0 = 100+110+120 405.0 = 110+120+175 459.0, I created a pandas dataframe sample and it tried to sum for every 3 rows: import pandas as pd import numpy as np d={'A':[100