import mario

db = mario.load_test("IOT")
regional = db.to_single_region("Reg1", inplace=False)
regional.regions

Result · A database for the retained region, with external exchanges represented in value-added and final-demand accounts.

Keep several regions#

subset = db.to_region_subset(["Reg1", "Reg2"], inplace=False)

External trade accounts#

regional.factors
regional.consumption_categories
regional.Z

This operation changes the model boundary. Inspect the new trade accounts before interpreting regional value added or final demand.

See db.to_single_region() and db.to_region_subset().