pudl.extract.eia757a#

Extract EIA Form 757a data from CSVs.

Attributes#

Classes#

Extractor

Extractor for EIA form 757a.

Functions#

raw_eia757a__data(raw_eia757a__all_dfs)

Extract raw EIA company data from CSV sheets into dataframes.

Module Contents#

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

Bases: pudl.extract.csv.CsvExtractor

Extractor for EIA form 757a.

METADATA[source]#

Instance of metadata object to use with this extractor.

get_page_cols(page: str, partition_selection: str) → pandas.RangeIndex[source]#

Get the columns for a particular page and partition key.

EIA 757A 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 and rename columns.

pudl.extract.eia757a.raw_eia757a__all_dfs[source]#
pudl.extract.eia757a.raw_eia757a__data(raw_eia757a__all_dfs)[source]#

Extract raw EIA company data from CSV sheets into dataframes.

Returns:

An extracted EIA 757a dataframe.