## aggregate.Expense


One expense leg of a [Book](aggregate.Book.md#prospicio.aggregate.Book): an amount ([fixed](distributions.Count.md#prospicio.distributions.Count.fixed)), a fraction of


Usage


``` python
aggregate.Expense()
```


the gross premium ([premium](pricing.Price.md#prospicio.pricing.Price.premium)) or of the gross loss ([loss](pricing.Pentagon.md#prospicio.pricing.Pentagon.loss), loss adjustment expense), or several such terms in one leg.

Unlabelled, a book's only expense is the leg `expense`; with several, a single-basis one is `<basis> expense` and a mixed one `expense`, with `(2)`, `(3)` … added to a name already taken, as [aggregate](aggregate.Clash.md#prospicio.aggregate.Clash.aggregate).


## Parameters


`basis: str or list of tuple of (str, float)`  
[fixed](distributions.Count.md#prospicio.distributions.Count.fixed), [premium](pricing.Price.md#prospicio.pricing.Price.premium) or [loss](pricing.Pentagon.md#prospicio.pricing.Pentagon.loss); or a list of `(basis, value)` terms.

`value: float`  
The amount or rate, with a single [basis](reserving.UlaeEstimate.md#prospicio.reserving.UlaeEstimate.basis).

`label: str`  


## Examples

``` python
>>> from prospicio.aggregate import Expense
>>> Expense("premium", 0.25, label="Acq")
```

Expense("Acq", \[("premium", 0.25)\])


## Attributes

| Name | Description |
|----|----|
| [label](#label) | The label, or None. |
| [terms](#terms) | The `(basis, value)` terms. |

------------------------------------------------------------------------


#### label


The label, or None.


`label: str | None`


------------------------------------------------------------------------


#### terms


The `(basis, value)` terms.


`terms: list[tuple[str, float]]`
