I got this table. And want to multiple cumulative sum of product 4355 to 4334.
- How can i calculate cumulative sum?
I got this table. And want to multiple cumulative sum of product 4355 to 4334.
I assume that you have read the dataframe as df
import numpy as np
sales_array = df["Sale"].values
result = np.sum(sales_array)
print(result)