title: Calculating XIRR in Python
body: <p>I need to calculate XIRR of financial investments made over a period of time. Is there any function to do this in numpy, pandas or plain python?</p>
  
  <p><a href="http://www.indiainfoline.com/article/research-articles/xirr-how-to-calculate-your-returns-38115077_1.html" rel="noreferrer">Reference: What is XIRR?</a></p>
  
  <p>The accepted answer in the original question is not correct and can be improved.</p>