Modified internal rate of return.
values : array_like
Cash flows (must contain at least one positive and one negative value) or nan is returned.
finance_rate : scalar
Interest rate paid on the cash flows
reinvest_rate : scalar
Interest rate received on the cash flows upon reinvestment
out : float
Modified internal rate of return
numpy.irr
numpy.nper