Let's reuse the cash flow series from the Time for action – calculating the net present value tutorial.
Call the irr
function with the cash flow series from the previous Time for action tutorial.
print "Internal rate of return", np.irr([-100, 38, 48, 90, 17, 36])
The internal rate of return would be shown as follows:
Internal rate of return 0.373420226888