transforms.loads
Convert IAM sectoral electricity demand to annual PyPSA loads.
Name-agnostic: operates on an already-loaded frame with [year, region, sector, value]
(the Coupler handles the symbol choice + fallback via the loader).
convert_loads(raw, *, unit_factor=TWA_TO_MWH, regions=None, year_col='year', region_col='region', sector_col='sector', value_col='value', unit_label='MWh_el')
¶
Convert IAM demand to annual MWh, one tidy row per (year, region, sector).