numpy.irr() in Python Last Updated : 05 Aug, 2022 Comments Improve Suggest changes Like Article Like Report 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 : Internal Rate of Return for periodic input values. Code: Python3 # Python program explaining # irr() function import numpy as np ''' Question : Investment = 500 Withdrawals at regular interval : 50, 31, 3, 11 ''' Solution = np.irr([-500, 50, 31, 3, 11]) print("Solution - Internal Rate of Return : ", Solution) Output: Solution - Internal Rate of Return : -0.5296447721512683 Comment More infoAdvertise with us Next Article numpy.irr() in Python M mohit gupta_omg :) Follow Improve Article Tags : Python Python-numpy Python numpy-Financial Functions Practice Tags : python Similar Reads numpy.mirr() in Python 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 âdepo 1 min read numpy.ipmt() in Python numpy.ipmt(rate, nper, pv, fv, when = âendâ) : This financial function helps user to compute payment value as per the interest only. i.e. returns the interest part. Parameters : rate : [scalar or (M, )array] Rate of interest as decimal (not per cent) per period nper : [scalar or (M, )array] total co 2 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.isscalar() in Python In this article, we will elucidate the `numpy.isscalar()` function through a well-documented code example and comprehensive explanation. Python numpy.isscalar() Syntax Syntax : numpy.isscalar(element) Parameters: element: The input element to be checked for scalar properties.Return Type: bool: Retur 3 min read Python | Numpy ndarray.__iand__() With the help of Numpy ndarray.__iand__() method, we can get the elements that is anded by the value that is provided as a parameter in numpy.ndarray.__iand__() method. Syntax: ndarray.__iand__($self, value, /) Return: self&=value Example #1 : In this example we can see that every element is and 1 min read Like