Residential Energy Consumption Survey data access
This package downloads and organizes access to the EIA RECS database.
The following example illustrates accessing the HC tables. These are based on the following context:
>>> import eia_recs
>>> hc = HousingCharacteristics(table="1.1")
>>> hc.find('data')
[['total', 'fuel-used', 'electric-end-use', 'natural-gas-end-use', 'wood-end-use', 'fuel-oil-end-use'], ['total', 'unit-type']]
>>> hc.find('data',['total'],['total'])
118.2e6
>>> hc.find('data',['total'],['unit-type','single-family-detached'])
>>> 73.9e6
>>> hc.find('data',['electric-end-use','space-heating'],['total']),
>>> [['total', 'main', 'secondary'], 'B']
The following example illustrates accessing the microdata. These are based on the following context:
>>> import eia_recs
>>> md = Microdata()
>>> md["LPXBTU"][0]
>>> 91.33