mario.Database.add_extensions
- Database.add_extensions(
- io,
- matrix,
- units,
- inplace=True,
- calc_all=True,
- notes=None,
- EY=None,
Add new extensions to value added or satellite accounts.
- Parameters:
io – Extension data as either a dataframe or a path to the Excel template generated by
get_extensions_excel(...).matrix – Target matrix to extend. Accepted values are
v,V,eandE, or their configured aliases.units – Unit table for the newly added rows.
inplace – When
True, mutate the current database. WhenFalse, return a modified copy.calc_all – When
True, recompute dependent matrices after inserting the new rows.notes – Optional user notes appended to metadata history.
EY – Optional final-demand satellite account rows used when extending the environmental account side.
- Returns:
Modified database when
inplace=False, otherwiseNone.- Return type:
Database | None