mirr¶

numpy_financial.
mirr
(values, finance_rate, reinvest_rate)¶ Modified internal rate of return.
 Parameters
 valuesarray_like
Cash flows (must contain at least one positive and one negative value) or nan is returned. The first value is considered a sunk cost at time zero.
 finance_ratescalar
Interest rate paid on the cash flows
 reinvest_ratescalar
Interest rate received on the cash flows upon reinvestment
 Returns
 outfloat
Modified internal rate of return