get_and_check_dataset#

pharmpy.model.get_and_check_dataset(model)[source]#

Get the dataset from a model and raise if the model has no dataset

Parameters:

model (Model) – Pharmpy model object

Returns:

pd.DataFrame – The dataset if it exists