pommes.visualisation._tables

Reading the summaries of generate_summary_dataframes_from_results.

Functions

summary_values(→ pandas.Series)

One value per row of a summary.

select_rows(→ pandas.Series)

The rows whose labels on each level are among the given ones.

producing_conversions(→ list)

The conversion technologies with a positive factor on resource.

operation_year_normalization(→ xarray.DataArray)

operation_year_duration / sum(time_step_duration), by year.

Module Contents

pommes.visualisation._tables.summary_values(df: pandas.DataFrame) → pandas.Series

One value per row of a summary.

A summary has one column per variable, each filled on the rows of its own type only: the value of a row is the sum of its columns.

pommes.visualisation._tables.select_rows(series: pandas.Series, **levels: object) → pandas.Series

The rows whose labels on each level are among the given ones.

A mask rather than .loc with scalar keys, which drops the levels it selects on.

pommes.visualisation._tables.producing_conversions(parameters: xarray.Dataset, resource: str) → list

The conversion technologies with a positive factor on resource.

pommes.visualisation._tables.operation_year_normalization(parameters: xarray.Dataset) → xarray.DataArray

operation_year_duration / sum(time_step_duration), by year.

Scales a sum over the modelled steps to the year, as the model does for the operation costs.