mario.Database.add_sectors
- Database.add_sectors(io, new_sectors, regions, item, inplace=True, notes=None)
Adds a Sector/Activity/Commodity to the database
Note
This function will delete all the scenarios in the datbase and overwirte the new matrices to the baseline.
- Parameters:
io (str, Dict[pd.DataFrame]) – the path of the Excel file containing the information or an equal dictionary with keys as the names of the sheets and values as dataframes of the excel file
new_sectors (list) – new sectors/activities/commodities to be added to the database
regions (list) – specific regions that the new technology will be specified
item (str) – the item to be added. Sector for IOT table and Activity or Commodity for SUT Sector if IOT, Activity or Commodity if SUT
inplace (boolean) – if True will implement the changes directly in the database else returns a new new mario.Database
notes (list, Optional) – notes to be recorded in the metadata
- Returns:
mario.Database – if inplace = True will return a new mario.Database
None – if inplace = False returns None and implements the changes in the databases