Resample option when pulling data through the API does not behave correctly

Open
#30 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api, data

Research direction

Locate the API resampling option and the code path that handles hourly-to-15-minute data, then reproduce the issue with Locational Marginal Prices. Confirm that upsampling returns the desired number of rows with repeated source values, while preserving the existing interval fields and downsampling behavior.

Written by the indexing model from the issue text.

Description

For example, when pulling hourly data from the api and resampling to 15min, the process fails to produce the desired result. Instead, the dataframe returned is of the same original dimension with only the local_start_times field modified.

For example, in the image below the interval_end_local column is changed to end at 15 minutes, but the actual lmp data is not resampled. The expected behavior is that for upsampling the more coarse data is repeated the required number of times to match the desired resolution. Additional functionality may be included for smoothing transitions but for this specific data (Locational Marginal Prices), repetition is the right approach.
image

Based on a quick glance at the source code, I assume downsampling will be okay.

Dominant language
Python
Stars
53
Forks
5
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from gridstatus/gridstatusio

All issues in gridstatus/gridstatusio

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.