numpy/numpy-financial

Standalone package of the NumPy financial functions

408

stars

419

commits

Python

primary language

Sep 3, 2026

updated

numpy.org/numpy-financial/

README

NumPy Financial

The numpy-financial package contains a collection of elementary financial functions.

The financial functions in NumPy are deprecated and eventually will be removed from NumPy; see NEP-32 for more information. This package is the replacement for the original NumPy financial functions.

The source code for this package is available at https://github.com/numpy/numpy-financial.

The importable name of the package is numpy_financial. The recommended alias is npf. For example,

>>> import numpy_financial as npf
>>> npf.irr([-250000, 100000, 150000, 200000, 250000, 300000])
0.5672303344358536

Development

Test the package:

spin test -- --doctest-modules

Contributors

(top 30 of 32)

Kai-Striega

202 commits

WarrenWeckesser

87 commits

jorenham

20 commits

charris

20 commits

numpy/numpy-financial

Standalone package of the NumPy financial functions

408

stars

419

commits

Python

primary language

Sep 3, 2026

updated

numpy.org/numpy-financial/

README

NumPy Financial

The numpy-financial package contains a collection of elementary financial functions.

The financial functions in NumPy are deprecated and eventually will be removed from NumPy; see NEP-32 for more information. This package is the replacement for the original NumPy financial functions.

The source code for this package is available at https://github.com/numpy/numpy-financial.

The importable name of the package is numpy_financial. The recommended alias is npf. For example,

>>> import numpy_financial as npf
>>> npf.irr([-250000, 100000, 150000, 200000, 250000, 300000])
0.5672303344358536

Development

Test the package:

spin test -- --doctest-modules

Contributors

(top 30 of 32)

Kai-Striega

202 commits

WarrenWeckesser

87 commits

jorenham

20 commits

charris

20 commits

Languages

Python

89.9%

HTML

3.9%

Cython

2.9%

CSS

2.4%