diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-09-19 12:23:17 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-19 12:23:17 -0500 |
commit | 8dff1ca9dbed87b08390c5697e3f3391a746b43b (patch) | |
tree | 4e21948570e3ce45cf95527e4ab563bea376e3ab /numpy/lib | |
parent | cb4f81737041dc1d26053f5bec4e5c12fd749375 (diff) | |
parent | 7c8043e19f5b35df153e8a5057f6f1db92b43dde (diff) | |
download | numpy-8dff1ca9dbed87b08390c5697e3f3391a746b43b.tar.gz |
Merge pull request #8061 from KhaledTo/issue#8055
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) |