Closed dw13813 closed 3 years ago
This NumPy module (numpy.irr) seems to do the job well: https://pythontic.com/finance/numpy/irr
FYI the parameter for numpy.irr()
is an integer array that represents input cash flows per time period.
Alternatively, we could use the irr()
method in the pyfinmod.basic
module. If you scroll to the bottom of this link, you can see an example for 'continuous compounding': https://pyfinmod.readthedocs.io/en/latest/basic.html
Looks good. It's been a while since I used Numpy for irr calculations.
Find library for IRR calculation