numpy/numpy — pull request #5263 by liufei11111 (2014-11-06 04:22:25+00:00)
Title: BUG: pmt() method of financial.py will yield error because the two param...

...eters passed in to np.where() is evaluated first before going into the function however, the denominator can be zero at that time. I allocated the intermediate result based on different formulas for rate == 0.0 and not equal to and fixes #5046. Also, a easy fix for asocial doesn’t take integer because it assumes passing in an np.array. I convert everything to np.array first and then retrieve the item. Fixed #4701