-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
financial.pmt modifies input #8055
Comments
Thanks for reporting! It's happening here: https://github.com/numpy/numpy/blob/master/numpy/lib/financial.py#L213 Either You are welcome to send a PR, and I'll be more than happy to guide you through the motions of doing so, just ask! Otherwise I don't think any of the maintainers is going to spend much time with the financial module (unless it is to remove it!). |
BUG : financial.pmt modifies input (issue #8055)
financial.pmt masked rate array in place, changing rate array. Changed to mask to a new array, preserving the original rate array.
Made a pull request here #8087 |
financial.pmt masked rate array in place, changing rate array. Changed to mask to a new array, preserving the original rate array.
BUG: financial.pmt modifies input #8055
Fixed by #8061. |
Whenever an array of rates is passed into np.pmt, all zeros in the array are converted to 1:
This is done internally in np.pmt to avoid dividing by zero, but it should be done in a way that does not modify the input arrays.
The text was updated successfully, but these errors were encountered: