Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
22dfb2c
Add fromregex function (needs more testing) and some simple spreadshe…
teoliphant Apr 4, 2008
64018ed
Add modified internal rate of return calculation which is more conser…
teoliphant Apr 4, 2008
b738fb1
Add docs and examples for financial functions.
teoliphant Apr 8, 2008
c1915c3
Improve comments.
teoliphant Apr 8, 2008
ac6e06b
Fix doc-tests for financial.py so they don't rely on floating-point e…
teoliphant Apr 8, 2008
77806df
ran reindent in preparation for the 1.1 release
jarrodmillman Apr 20, 2008
ebc04cd
Merge documentation changes from wiki.
stefanv May 19, 2008
89ad973
Switched to use nose to run tests. Added test and bench functions to …
Jun 17, 2008
ac9f99f
Restore old test framework classes. Added numpy.testing.run_module_su…
Jun 21, 2008
d89273f
Remove uses of set_package_path, set_local_path, restore_path. Clean …
Jul 3, 2008
a56484b
Use the implicit "import numpy as np" made available to all doctests …
Jul 5, 2008
9f02f66
Added tests to improve coverage. Converted tests from doctests to uni…
Jul 24, 2008
325e0c9
Merge from documentation editor.
stefanv Aug 5, 2008
6e31f68
Remove piece-by-piece docstring assembly; the full texts were inserte…
pv Aug 8, 2008
925abb5
ran reindent
jarrodmillman Aug 8, 2008
db9eacb
Import documentation from doc wiki (part 2, work-in-progress docstrin…
pv Oct 28, 2008
a702104
Merge from the doc wiki
pv Mar 24, 2009
aae4814
Merge from doc wiki
pv Jun 19, 2009
c37e007
Add patch in ticket #1138 which fixes mirr function to be the same as…
teoliphant Aug 25, 2009
5399ce0
Improve test and add a test to Python.
teoliphant Aug 25, 2009
ab23498
Make some fixes in mirr implementation to avoid overflow in summing b…
charris Aug 26, 2009
6bb9481
Comment out failing test until it is decided where the problem lies.
charris Aug 26, 2009
02d28f6
Fix mirr function and its test. Thanks go to Skipper and Josef.
charris Aug 26, 2009
65fb1eb
Docstring update: lib
pv Oct 2, 2009
8826b9d
more docstring updates from pydoc website (thanks to everyone who con…
jarrodmillman Feb 17, 2010
bf809a7
BUG: fix div by zero handling in nper.
cournape Mar 31, 2010
95c8ad3
WHT: Cleanup trailing whitespace.
charris Apr 2, 2011
db8c555
Added ipmt (interest portion of payment) and ppmt (principal portion …
Jan 29, 2012
668c97c
BUG: Changed ipmt to accept array_like arguments.
timcera Apr 29, 2012
7c48e56
2to3: Put `from __future__ import division in every python file.
charris Feb 27, 2013
3883ea1
2to3: Replace xrange by range and use list(range(...)) where needed
charris Mar 6, 2013
ce6aa9b
2to3: Use absolute imports.
charris Mar 28, 2013
f65a6f5
2to3: Apply `print` fixer.
charris Apr 6, 2013
21170e1
2to3: Apply `map` fixer.
charris Apr 9, 2013
24fcd99
BUG: The npv function in financial.py was incorrectly implemented.
May 22, 2013
43a21b4
MAINT: Use np.errstate context manager.
charris Jul 11, 2013
e0adfdf
STY: Giant comma spacing fixup.
charris Aug 18, 2013
90a46a5
STY: Make numpy/lib/test/*.py PEP8 compliant.
charris Sep 2, 2013
332bb7f
BUG: IRR was returning nan instead of valid negative answer.
peliot Feb 1, 2014
3629126
MAINT: Fix problems noted by pyflakes in numpy/lib/tests.
charris Jul 30, 2014
5797f54
STY: PEP8 compliance for numpy/lib/tests.
charris Jul 30, 2014
95a4194
MAINT: Fixes for problems in numpy/lib revealed by pyflakes.
charris Jul 30, 2014
891af82
STY: Make files in numpy/lib PEP8 compliant.
charris Jul 31, 2014
963b394
DOC : optional parenthesis
tacaswell Dec 12, 2014
a08dc92
BUG: Fix zero divide warning in financial.pmt.
liufei11111 Nov 6, 2014
5f336d5
MAINT: Simplify fix for rate == 0 in financial.pmt.
charris Feb 17, 2015
164fa4b
MAINT: Fix pmt test in numpy/lib/tests/test_financial.py.
charris Feb 17, 2015
cc8c23b
DOC: Use print only as function when print_function is imported from …
gfyoung Dec 20, 2015
3cc2a50
BUG: np.irr should return NaN if there are no real solutions
simongibbons Feb 24, 2016
02bd2e2
BUG : financial.pmt modifies input (issue #8055)
KhaledTo Sep 19, 2016
d089a87
BUG: financial.pmt modifies input #8055
naveenarun Sep 22, 2016
5b81f17
TST: Remove unittest dependencies in numpy/lib/tests.
charris Jul 17, 2017
3275ff1
ENH: add Decimal support to numpy.lib.financial (#9952)
garrypolley Nov 12, 2017
50f3e76
MAINT: Remove all uses of run_module_suite.
charris Apr 4, 2018
f52fc20
ENH: __array_function__ for np.lib, part 1
shoyer Oct 8, 2018
0126027
MAINT: set preferred __module__ for numpy functions
shoyer Oct 23, 2018
52f50fe
TST, DOC: enable refguide_check
tylerjereddy Nov 14, 2018
fa694ef
DOC: Add warning message to np.npv docs
Kai-Striega Sep 14, 2019
f7e14e7
TST: Move NPV-IRR congruence check to tests
Kai-Striega Sep 14, 2019
e7f23d5
MAINT: Rename module to numpy_financial
WarrenWeckesser Sep 27, 2019
7ce749a
MAINT: Reorganize
WarrenWeckesser Sep 27, 2019
62f2669
MAINT: Add .gitignore
WarrenWeckesser Sep 27, 2019
26356bd
MAINT: Add a simple setup.py
WarrenWeckesser Sep 27, 2019
14d14f2
MAINT: update test_financial.py
WarrenWeckesser Sep 27, 2019
a826100
MAINT: Add LICENSE.txt.
WarrenWeckesser Sep 27, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 109 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# Editor temporary/working/backup files #
#########################################
.#*
[#]*#
*~
*$
*.bak
*.diff
.idea/
*.iml
*.ipr
*.iws
*.org
.project
pmip
*.rej
.settings/
.*.sw[nop]
.sw[nop]
*.tmp
*.vim
.vscode
tags
cscope.out
# gnu global
GPATH
GRTAGS
GSYMS
GTAGS
.cache

# Compiled source #
###################
*.a
*.com
*.class
*.dll
*.exe
*.o
*.o.d
*.py[ocd]
*.so

# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.bz2
*.bzip2
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.tbz2
*.tgz
*.zip

# Python files #
################
# setup.py working directory
build
# sphinx build directory
_build
# setup.py dist directory
dist
doc/build
doc/cdoc/build
# Egg metadata
*.egg-info
# The shelf plugin uses this dir
./.shelf
MANIFEST
.cache

# Paver generated files #
#########################
/release

# Logs and databases #
######################
*.log
*.sql
*.sqlite

# Patches #
###########
*.patch
*.diff

# OS generated files #
######################
.DS_Store*
.VolumeIcon.icns
.fseventsd
Icon?
.gdb_history
ehthumbs.db
Thumbs.db
.directory

# pytest generated files #
##########################
/.pytest_cache

# Things specific to this project #
###################################
30 changes: 30 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Copyright (c) 2005-2019, NumPy Developers.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:

* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.

* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.

* Neither the name of the NumPy Developers nor the names of any
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3 changes: 3 additions & 0 deletions numpy_financial/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@


from ._financial import *
Loading