pyxirr | Rust-powered collection of financial functions for Python | Cryptocurrency library
kandi X-RAY | pyxirr Summary
kandi X-RAY | pyxirr Summary
Rust-powered collection of financial functions. PyXIRR stands for "Python XIRR" (for historical reasons), but contains many other financial functions such as IRR, FV, NPV, etc.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of pyxirr
pyxirr Key Features
pyxirr Examples and Code Snippets
Community Discussions
Trending Discussions on pyxirr
QUESTION
I am trying to apply an XIRR Formula so that the percentage of each investment is calculated separately.
I Have data in excel file like:
https://i.stack.imgur.com/yqMiV.png
headers: Script,date,Values
result : Scrip and XIRR
Used Python library:
#pip install pyxirr
from pyxirr import xirr
I am Calculating for single script code like the below and appending it to a dataframe:
...ANSWER
Answered 2021-Dec-04 at 08:52You can group by your DataFrame
by Script
and apply xirr
function to the each group:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pyxirr
Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page