Pull EIA API¶
EnergyIntensityIndicators.pull_eia_api.GetEIAData
-
class
EnergyIntensityIndicators.pull_eia_api.
GetEIAData
(sector)¶ Bases:
object
-
conversion_factors
(include_utility_sector_efficiency=False)¶ Calculate conversion factors by sector
-
eia_api
(id_, id_type='category', new_name=None)¶ Collect data from EIA API by endpoint and type (category or series)
-
get_category
(api_key, id_)¶ Collect categorical data from EIA API by merging data for all child series
-
get_seds
()¶ Load and format energy consumption data Used for commercial (ESCCB and TNCCB) and residential (ESCRB and TNRCB) ‘./EnergyIntensityIndicators/use_all_btu.csv’
-
static
get_series
(api_key, id_)¶ Collect series data from EIA API, format in dataframe with year as index
-
national_calibration
()¶ Calibrate SEDS energy consumption data to most recent data from the Annual or Monthly Energy Review
-