from_dataframe

classmethod Parameters.from_dataframe(df: DataFrame, source: str = 'DataFrame') Parameters[source]

Create a Parameters from a pandas.DataFrame.

Parameters:
  • df (pd.DataFrame) – The source data frame.

  • source (str) – Optional name of the source file, used for error messages.

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.

Returns:

  • Parameters – The created parameter group.

  • .. # noqa (D414)