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.

Functions

extract_eia861(context, raw_eia861__all_dfs)

Extract raw EIA-861 data from Excel sheets into dataframes.

Attributes

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

Bases: pudl.extract.excel.ExcelExtractor

Extractor for the excel dataset EIA861.

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

Rename columns with location.

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.

pudl.extract.eia861.raw_eia861__all_dfs[source]
pudl.extract.eia861.extract_eia861(context, raw_eia861__all_dfs)[source]

Extract raw EIA-861 data from Excel sheets into dataframes.

Parameters:

context – dagster keyword that provides access to resources and config.

Returns:

A tuple of extracted EIA-861 dataframes.