The internal rate of return is the effective interested rate, which does not take into account inflation. The NumPy irr() function returns the internal rate of return for a given cash flow series.
irr()