NumPy参考 >例行程序 >Financial functions > numpy.ppmt
numpy.
ppmt
(rate, per, nper, pv, fv=0, when='end')[source]¶Compute the payment against loan principal.
Deprecated since version 1.18: ppmt
is deprecated; for details, see NEP 32 [1].
Use the corresponding function in the numpy-financial library,
https://pypi.org/project/numpy-financial.
Rate of interest (per period)
Amount paid against the loan changes. The per is the period of interest.
Number of compounding periods
Present value
Future value
When payments are due (‘begin’ (1) or ‘end’ (0))
References
NumPy Enhancement Proposal (NEP) 32, https://numpy.org/neps/nep-0032-remove-financial-functions.html