Skip to content

numpy/numpy-financial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9ad0bc2 · Sep 30, 2024
Jul 6, 2024
Mar 21, 2024
May 4, 2024
Oct 13, 2019
Sep 19, 2024
Mar 29, 2024
Sep 27, 2019
Oct 9, 2019
May 4, 2024
Jul 6, 2024
Mar 31, 2024
May 4, 2024

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