diff options
Diffstat (limited to 'numpy/lib/financial.py')
-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) |