numpy has irr and npv function, but I need xirr and xnpv function.
this link points out that xirr and xnpv will be coming soon. http://www.projectdirigible.com/documentation/spreadsheet-functions.html#coming-soon
Is there any python library that has those two functions? tks.
With Pandas, I got the following to work: (note, I'm using ACT/365 convention)
With the help of various implementations I found in the net, I came up with a python implementation:
Here is one way to implement the two functions.