ParametricSolution.from_df

classmethod ParametricSolution.from_df(df: pandas.core.frame.DataFrame, prefix_flow: str = 'edge', prefix_potential: str = 'node') paminco._base.ParametricSolution[source]

Build ParametricSolution from pandas.DataFrame.

Parameters
dfpandas.DataFrame

Dataframe used to build ParametricSolution.

prefix_flowstr, default=”edge”

Prefix of columns in df that hold edge flows. Column names are expected to be strings of the form f"{prefix_flow}_{idx}".

prefix_potentialstr, default=”node”

Prefix of columns that hold node potentials. Same column naming convention as for prefix_flow applies.

Returns
ParametricSolution