8000 Merge pull request #8061 from KhaledTo/issue#8055 · numpy/numpy@8dff1ca · GitHub
[go: up one dir, main page]

Skip to content

Commit 8dff1ca

Browse files
authored
Merge pull request #8061 from KhaledTo/issue#8055
BUG : financial.pmt modifies input (issue #8055)
2 parents cb4f817 + 7c8043e commit 8dff1ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/lib/financial.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def pmt(rate, nper, pv, fv=0, when='end'):
207207
208208
"""
209209
when = _convert_when(when)
210-
(rate, nper, pv, fv, when) = map(np.asarray, [rate, nper, pv, fv, when])
210+
(rate, nper, pv, fv, when) = map(np.array, [rate, nper, pv, fv, when])
211211
temp = (1 + rate)**nper
212212
mask = (rate == 0.0)
213213
np.copyto(rate, 1.0, where=mask)

0 commit comments

Comments
 (0)
0