numpy.irr(values) [source]
Return the Internal Rate of Return (IRR). This is the ?average? periodically compounded rate of return that gives a net present value of 0.0; for a more complete explanation, see Notes below. Parameters:
values : array_like, shape(N,) Input cash flows per time period. By convention, net ?deposits? are negative and net ?withdrawals? are positive. Thus, for example, at least the first element of values, which represents the initial investment, will typically be ne