Update AEO preprocessing to pull from AEO2026#5
Open
wesleyjcole wants to merge 5 commits intomainfrom
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the aeo_updates preprocessing artifacts to pull data from the EIA AEO2026 API, reflecting updated scenario IDs and renamed series labels.
Changes:
- Update the AEO scraper notebook default vintage to 2026, adjust series/scenario names (e.g., “Nuclear Fuel”, “Counterfactual Baseline”), and add scenario ID validation.
- Write scraper outputs to a dedicated
outputs/directory (auto-created). - Refresh comparison spreadsheet used for cross-vintage checks.
Reviewed changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
aeo_updates/AEO_scraper.ipynb |
Switches to AEO2026 defaults and scenario/series names; adds scenario validation and writes outputs into outputs/. |
aeo_updates/README.md |
Notes AEO2026 naming change (“Uranium” → “Nuclear Fuel” for real prices) and documents the outputs/ directory behavior. |
aeo_updates/Compare AEO 2025 to AEO 2023.xlsx |
Updated comparison workbook (binary; contents not reviewable in diff). |
Comments suppressed due to low confidence (1)
aeo_updates/AEO_scraper.ipynb:1574
- This block is now misleading: it refers to outputting coal/uranium only for the "REF" scenario and checks for the old Uranium series name, but the scenario list now uses
cb{AEO_year}(Counterfactual Baseline) and the real-price series is "Nuclear Fuel". Either update the comments/conditional to match current behavior or remove the dead commented-out code.
" # Only output coal and uranium prices for REF scenario\n",
" # if x == 'Energy Prices : Electric Power : Steam Coal' or x == 'Energy Prices : Electric Power : Uranium':\n",
" # if j == f'REF{AEO_year}':\n",
" # df_pivot_filtered.to_csv(filename, index=False)\n",
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request updates the AEO preprocessing scripts to pull from AEO2026.
Technical details
"Uranium" was renamed as "Nuclear Fuel" in the real dollar outputs, but not for the nominal dollar outputs. Thus both names are still used in the script.
What was the reference scenario is now the "Counterfactual Baseline" scenario.
Additional details
The pull request is closely related to #2, which updates the natural gas elements of the AEO2026. We still pull the natural gas price data here for convenience, but will not be required here once #2 is merged.
Use of AI disclaimer: I used a LLM to update the scenario and parameter names for the API calls.