pandas-montecarlo
pandas-montecarlo copied to clipboard
Total cumsum
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:]"
Made the changes here - https://github.com/Iyamoto/pandas-montecarlo/blob/master/pandas_montecarlo/init.py