Skip to content

Speed up historical forecast parsing by avoiding pd.json_normalize#38

Merged
sam-watttime merged 1 commit intofuture-releasefrom
rm-json-normalize
Mar 12, 2025
Merged

Speed up historical forecast parsing by avoiding pd.json_normalize#38
sam-watttime merged 1 commit intofuture-releasefrom
rm-json-normalize

Conversation

@sam-watttime
Copy link
Contributor

pd.json_normalize is not efficient to use in a loop. When profiling code, calls to _parse_historical_forecast_json improved from 10.8s -> 0.38s for 1% of 1 year of forecasts.

@sam-watttime sam-watttime requested a review from xginn8 as a code owner February 13, 2025 19:11
@jcofield jcofield changed the base branch from main to future-release February 13, 2025 23:36
@sam-watttime sam-watttime merged commit 743b522 into future-release Mar 12, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants