read_dataset_from_datainfo#

pharmpy.modeling.read_dataset_from_datainfo(datainfo, datatype=None)[source]#

Read a dataset given a datainfo object or path to a datainfo file

Parameters:
  • datainfo (DataInfo | Path | str) – A datainfo object or a path to a datainfo object

  • datatype (str) – A string to specify dataset type

Returns:

pd.DataFrame – The dataset