pudl.extract.eia861 module¶
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.
-
class
pudl.extract.eia861.
ExtractorExcel
(dataset_name, years, pudl_settings)[source]¶ Bases:
object
A class for converting Excel files into DataFrames.
-
get_column_map
(year, file_name, page_name)[source]¶ Given a year and page, returns info needed to slurp it from Excel.
-
get_file
(yr, file_name)[source]¶ Construct the appopriate path for a given EIA860 Excel file.
- Parameters
- Returns
Path to EIA 861 spreadsheets corresponding to a given year.
- Return type
- Raises
ValueError – If the requested year is not in the list of working years for EIA 861.
-
get_page
(years, page_name, file_name)[source]¶ Get a page from years of excel files and convert them to a DataFrame.
-