pandas-montecarlo icon indicating copy to clipboard operation
pandas-montecarlo copied to clipboard

Total cumsum

Open Iyamoto opened this issue 6 years ago • 1 comments

Hi. As I see it "total = cumsum[-1:].T" always has the same value for all simulations (because all of them end in the same point). Which messes stats based on total.

The same issue is with "nobust = cumsum[cumsum.min()[cumsum.min() > -abs(bust)].index][-1:]"

Iyamoto avatar Nov 04 '18 09:11 Iyamoto

Made the changes here - https://github.com/Iyamoto/pandas-montecarlo/blob/master/pandas_montecarlo/init.py

Iyamoto avatar Nov 04 '18 09:11 Iyamoto