pudl.extract.eia860#
Retrieve data from EIA Form 860 spreadsheets for analysis.
This modules pulls data from EIA’s published Excel spreadsheets.
This code is for use analyzing EIA Form 860 data.
Attributes#
Classes#
Extractor for the excel dataset EIA860. |
Functions#
|
Extract raw EIA data from excel sheets into dataframes. |
Module Contents#
- class pudl.extract.eia860.Extractor(*args, **kwargs)[source]#
Bases:
pudl.extract.excel.ExcelExtractorExtractor for the excel dataset EIA860.
- process_raw(df: pandas.DataFrame, page: str, **partition)[source]#
Apply necessary pre-processing to the dataframe.
Rename columns based on our compiled spreadsheet metadata
Add report_year if it is missing
Add a flag indicating if record came from EIA 860, or EIA 860M
Fix any generator_id values with leading zeroes.