get_doses#

pharmpy.modeling.get_doses(model)[source]#

Get a series of all doses

Indexed with ID and TIME

Parameters:

model (Model) – Pharmpy model

Returns:

pd.Series – doses

Example

>>> from pharmpy.modeling import load_example_model, get_doses
>>> model = load_example_model("pheno")
>>> get_doses(model)
ID  TIME
1   0.0      25.0
    12.5      3.5
    24.5      3.5
    37.0      3.5
    48.0      3.5
             ...
59  96.0      3.0
    108.3     3.0
    120.5     3.0
    132.3     3.0
    144.8     3.0
Name: AMT, Length: 589, dtype: float64