Import the packages
— — — — — — — — — — — — — — — — — — — -

Numpy Arrays works well with matplotlib. The majority of the ndarray methods return a ndarray object, one can also pass the object with a method (or even multiple methods)
Calling cumsum() method on the ndarray object:
