pudl.extract.eia176

Extract EIA Form 176 data from CSVs.

Module Contents

Classes

Extractor

Extractor for EIA form 176.

Functions

raw_eia176__data(raw_eia176__all_dfs)

Extract raw EIA company data from CSV sheets into dataframes.

Attributes

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

Bases: pudl.extract.csv.CsvExtractor

Extractor for EIA form 176.

get_page_cols(page: str, partition_key: str) list[str][source]

Get the columns for a particular page and partition key.

EIA 176 data has the same set of columns for all years, so regardless of the partition key provided we select the same columns here.

process_raw(df: pandas.DataFrame, page: str, **partition: pudl.extract.extractor.PartitionSelection) pandas.DataFrame[source]

Append report year to df to distinguish data from other years.

pudl.extract.eia176.raw_eia176__all_dfs[source]
pudl.extract.eia176.raw_eia176__data(raw_eia176__all_dfs)[source]

Extract raw EIA company data from CSV sheets into dataframes.

Returns:

An extracted EIA 176 dataframe.