unload_dataset#

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

Unload the dataset from a model

Parameters:

model (Model) – Pharmpy model

Returns:

Model – Pharmpy model with dataset removed

Example

>>> from pharmpy.modeling import load_example_model, unload_dataset
>>> model = load_example_model("pheno")
>>> model = unload_dataset(model)
>>> model.dataset is None
True