diff options
author | KhaledTo <khaled.ben.okuda@gmail.com> | 2016-09-18 22:00:24 -0400 |
---|---|---|
committer | KhaledTo <khaled.ben.okuda@gmail.com> | 2016-09-18 22:00:24 -0400 |
commit | 7c8043e19f5b35df153e8a5057f6f1db92b43dde (patch) | |
tree | cf8fdcde4827e42c16d940b11a1bdb431ebf4556 /numpy/lib | |
parent | 1147490663d36b05fad8dcce1e104601c2724560 (diff) | |
download | numpy-7c8043e19f5b35df153e8a5057f6f1db92b43dde.tar.gz |
BUG : financial.pmt modifies input (issue #8055)
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/financial.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/financial.py b/numpy/lib/financial.py index f1a1a4287..931b0af56 100644 --- a/numpy/lib/financial.py +++ b/numpy/lib/financial.py @@ -207,7 +207,7 @@ def pmt(rate, nper, pv, fv=0, when='end'): """ when = _convert_when(when) - (rate, nper, pv, fv, when) = map(np.asarray, [rate, nper, pv, fv, when]) + (rate, nper, pv, fv, when) = map(np.array, [rate, nper, pv, fv, when]) temp = (1 + rate)**nper mask = (rate == 0.0) np.copyto(rate, 1.0, where=mask) |