pudl.extract.eia861

Retrieve data from EIA Form 861 spreadsheets for analysis.

This modules pulls data from EIA’s published Excel spreadsheets.

This code is for use analyzing EIA Form 861 data.

Module Contents

Classes

Extractor

Extractor for the excel dataset EIA861.

Attributes

logger

pudl.extract.eia861.logger[source]
class pudl.extract.eia861.Extractor(*args, **kwargs)[source]

Bases: pudl.extract.excel.GenericExtractor

Extractor for the excel dataset EIA861.

process_raw(self, df, page, **partition)[source]

Rename columns with location.

extract(self, settings: pudl.settings.Eia861Settings = Eia861Settings())[source]

Extracts dataframes.

Returns dict where keys are page names and values are DataFrames containing data across given years.

Parameters

settings – Object containing validated settings relevant to EIA 861. Contains the tables and years to be loaded into PUDL.

static process_renamed(df, page, **partition)[source]

Adds report_year column if missing.

static get_dtypes(page, **partition)[source]

Returns dtypes for plant id columns.