Skip to content

ESS-4162: Unpinning pandas#150

Merged
branislav-jenco-4ss merged 3 commits into
masterfrom
ESS-4162
May 21, 2026
Merged

ESS-4162: Unpinning pandas#150
branislav-jenco-4ss merged 3 commits into
masterfrom
ESS-4162

Conversation

@branislav-jenco-4ss
Copy link
Copy Markdown
Contributor

Unpinnng pandas from < 3 and fixing the accompanying issue where in pandas 3, if the user supplied None to the start parameter of client.get, the access slicing wouldn't work properly b/c of an int64 underflow.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to support pandas 3 by addressing a pandas 3 slicing issue in Client.get() when start=None, and updates test fixtures/expectations to match the new default start timestamp behavior.

Changes:

  • Updated the default start used by Client.get() requests from a negative nanoseconds value to 0 (Unix epoch) to avoid pandas 3 slicing issues.
  • Refactored series slicing logic in Client.get() to sort once (when needed) and then slice.
  • Updated URL expectations in tests/response cases to match the new start=0 default.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
datareservoirio/client.py Adjusts default start behavior and refactors slicing/sorting for pandas 3 compatibility.
tests/test_client.py Updates expected request URL for default start behavior.
tests/response_cases.py Updates mocked response keys (URLs) to match the new default request parameters.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread datareservoirio/client.py
Comment thread datareservoirio/client.py
Comment thread tests/test_client.py Outdated
@branislav-jenco-4ss branislav-jenco-4ss merged commit ef4781c into master May 21, 2026
12 checks passed
@branislav-jenco-4ss branislav-jenco-4ss deleted the ESS-4162 branch May 21, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants