loganhotz / edan

economic data analysis toolkit, with an emphasis on NIPA accounts and BLS labor aggregates
0 stars 0 forks source link

ENH: Function that will create an Aggregate Component, or super-Component given a collection of Componentss #18

Open loganhotz opened 3 years ago

loganhotz commented 3 years ago

For example, to create a sort of private car ownership via:

import edan

pce_table = edan.nipa.PCETable

vehicles = pce_table['pce:g:d:v']
gas_oil = pce_table['pce:g:n:g:v']
car_service = pce_table['pce:s:h:t:v']

pers_cars = edan.aggregate([vehicles, gas_oil, car_service])
loganhotz commented 3 years ago

I wanted to mention this issue in commit 58f29cb, not fully close it. At the moment, aggregate methods for CPI price indices and CES employment numbers are needed to fully close this.