-4

I got this table. And want to multiple cumulative sum of product 4355 to 4334.

  1. How can i calculate cumulative sum?

enter image description here

Arty
  • 37
  • 5

1 Answers1

0

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)
Rizquuula
  • 578
  • 5
  • 15