from_dataframe
- classmethod ParameterGroup.from_dataframe(df: pandas.core.frame.DataFrame, source: str = 'DataFrame') glotaran.parameter.parameter_group.ParameterGroup[source]
Create a
ParameterGroupfrom apandas.DataFrame.- Parameters
df (pd.DataFrame) – The source data frame.
source (str) – Optional name of the source file, used for error messages.
- Returns
The created parameter group.
- Return type
- Raises
ValueError – Raised if the columns ‘label’ or ‘value’ doesn’t exist. Also raised if the columns ‘minimum’, ‘maximum’ or ‘values’ contain non numeric values or if the columns ‘non-negative’ or ‘vary’ are no boolean.