numpy.mirr() in Python Last Updated : 05 Aug, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report numpy.mirr(values, finance_rate, reinvest_rate) : This financial function helps user to compute modified IRR Value i.e. Modified Internal Rate of Return ie. “average” periodically compounded rate of returnIRR equals to - Parameters : values : [array-like] Input cash flows per time period. net “deposits” are negative and net “withdrawals” are positive finance_rate : Interest paid on cash amounts. reinvest_rate : Interest received on cash amounts.Return : Modified Internal Rate of Return for periodic input values ie. considering interest values. Code: Python3 # Python program explaining # mirr() function import numpy as np ''' Question : Investment = 500 Withdrawals at regular interval : 50, 31, 3, 11 ''' Solution = np.mirr([-500, 50, 31, 3, 11], .34, .21) print("Solution - Modified Internal Rate of Return : ", Solution) Output: Solution - Modified Internal Rate of Return : -0.26165615714437973 Comment More infoAdvertise with us Next Article numpy.index() in Python M mohit gupta_omg :) Follow Improve Article Tags : Python Python-numpy Python numpy-Financial Functions Practice Tags : python Similar Reads numpy.irr() in Python numpy.irr(values) : This financial function helps user to compute IRR Value i.e. Internal Rate of Return ie. âaverageâ periodically compounded rate of return.  Parameters : values : [array-like] Input cash flows per time period. net âdepositsâ are negative and net âwithdrawalsâ are positiveReturn 1 min read numpy.mod() in Python numpy.mod() is another function for doing mathematical operations in numpy.It returns element-wise remainder of division between two array arr1 and arr2 i.e. arr1 % arr2 .It returns 0 when arr2 is 0 and both arr1 and arr2 are (arrays of) integers. Syntax : numpy.mod(arr1, arr2, /, out=None, *, where 2 min read numpy.find() in Python numpy.core.defchararray.find(arr, substring, start=0, end=None): Finds the lowest index of the sub-string in the specified range. Parameters: arr : array-like or string to be searched. substring : substring to search for. start, end : [int, optional] Range to search in. Returns : An integer array wi 1 min read numpy.index() in Python numpy.core.defchararray.index(arr, substring, start=0, end=None): Finds the lowest index of the sub-string in the specified range But if substring is not found, it raises ValueError. Parameters: arr : array-like or string to be searched. substring : substring to search for. start, end : [int, option 1 min read numpy.alen() in Python numpy.alen() function is used to return the length of the first dimension of the input array. Syntax : numpy.alen(arr) Parameters : arr : [array_like] Input array. Return : [int]Length of the first dimension of arr. Code #1 : Python3 # Python program explaining # alen() function import numpy as geek 1 min read numpy.nonzero() in Python numpy.nonzero() function returns the indices of the elements in an array that are non-zero. It is commonly used to find the positions of non-zero (or True) elements in arrays.Example:Pythonimport numpy as np a = np.array([0, 2, 0, 3, 0, 4]) res = np.nonzero(a) print(res)Output(array([1, 3, 5]),) Exp 2 min read Like