File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -882,9 +882,9 @@ def npv(rate, values):
882
882
883
883
Parameters
884
884
----------
885
- rate : scalar
885
+ rate : scalar or array_like shape(K, )
886
886
The discount rate.
887
- values : array_like, shape(M, )
887
+ values : array_like, shape(M, ) or shape(M, N)
888
888
The values of the time series of cash flows. The (fixed) time
889
889
interval between cash flow "events" must be the same as that for
890
890
which `rate` is given (i.e., if `rate` is per year, then precisely
@@ -895,9 +895,10 @@ def npv(rate, values):
895
895
896
896
Returns
897
897
-------
898
- out : float
898
+ out : float or array shape(K, M)
899
899
The NPV of the input cash flow series `values` at the discount
900
- `rate`.
900
+ `rate`. `out` follows the ufunc convention of returning scalars
901
+ instead of single element arrays.
901
902
902
903
Warnings
903
904
--------
You can’t perform that action at this time.
0 commit comments