numpy_financial.ppmt#
- numpy_financial.ppmt(rate: float | float64, per: float | float64 | float32 | float16 | integer[Any] | bool, nper: float | float64 | float32 | float16 | integer[Any] | bool, pv: float | float64 | float32 | float16 | integer[Any] | bool, fv: float | float64 | float32 | float16 | integer[Any] | bool = 0, when: str | int | NDArray[Any] | Iterable[str | int] = 'end') float#
- numpy_financial.ppmt(rate: Decimal, per: Decimal | int, nper: Decimal | int, pv: Decimal | int, fv: Decimal | int = 0, when: str | int | NDArray[Any] | Iterable[str | int] = 'end') Decimal
- numpy_financial.ppmt(rate: _CanArrayAndLen[float64] | Sequence[float | float64], per: float | _CanArray[float64 | float32 | float16 | integer[Any] | bool] | Sequence[float | float64 | float32 | float16 | integer[Any] | bool], nper: float | _CanArray[float64 | float32 | float16 | integer[Any] | bool] | Sequence[float | float64 | float32 | float16 | integer[Any] | bool], pv: float | _CanArray[float64 | float32 | float16 | integer[Any] | bool] | Sequence[float | float64 | float32 | float16 | integer[Any] | bool], fv: float | _CanArray[float64 | float32 | float16 | integer[Any] | bool] | Sequence[float | float64 | float32 | float16 | integer[Any] | bool] = 0, when: str | int | NDArray[Any] | Iterable[str | int] = 'end') NDArray[float64]
- numpy_financial.ppmt(rate: ArrayLike | _NestedSequence[Decimal] | Decimal, per: ArrayLike | _NestedSequence[Decimal] | Decimal, nper: ArrayLike | _NestedSequence[Decimal] | Decimal, pv: ArrayLike | _NestedSequence[Decimal] | Decimal, fv: ArrayLike | _NestedSequence[Decimal] | Decimal = 0, when: str | int | NDArray[Any] | Iterable[str | int] = 'end') Any
Compute the payment against loan principal.
- Parameters:
- ratearray_like
Rate of interest (per period)
- perarray_like, int
Amount paid against the loan changes. The per is the period of interest.
- nperarray_like
Number of compounding periods
- pvarray_like
Present value
- fvarray_like, optional
Future value
- when{{‘begin’, 1}, {‘end’, 0}}, {string, int}
When payments are due (‘begin’ (1) or ‘end’ (0))