Skip to content

Fix: Correct mismatched datetime resolution with pd.date_range#243

Merged
RHammond2 merged 8 commits into
mainfrom
patch/polar-pandas-dt-resolution
Jul 14, 2026
Merged

Fix: Correct mismatched datetime resolution with pd.date_range#243
RHammond2 merged 8 commits into
mainfrom
patch/polar-pandas-dt-resolution

Conversation

@RHammond2

Copy link
Copy Markdown
Collaborator

Replace pd.date_range with pl.datetime_range while testing

This PR fixes the test failures in tests/unit/test_environment.py caused by a mismatched datetime resolution after a changed default setting from µs to ns.

PR Checklist

  • CHANGELOG.md has been updated to describe the changes made in this PR
  • Documentation
    • Docstrings are up-to-date
    • Related docs/ files are up-to-date, or added when necessary
    • Documentation has been rebuilt successfully
    • Examples have been updated
  • Tests pass (If not, and this is expected, please elaborate in the tests section)
  • PR description thoroughly describes the new feature, bug fix, etc.

Related issues

N/A

Impacted areas of the software

  • tests/unit/test_environment.py: All instance of pd.date_range were changed to pl.datetime_range

Additional supporting information

Python version: 3.12.9
WOMBAT version (wombat.__version__): 0.13.3

N/A

Test results, if applicable

@RHammond2 RHammond2 added the bug Something isn't working label Jul 14, 2026
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 75.349%. remained the same — patch/polar-pandas-dt-resolution into main

@RHammond2
RHammond2 merged commit 3249f18 into main Jul 14, 2026
18 checks passed
@RHammond2
RHammond2 deleted the patch/polar-pandas-dt-resolution branch July 14, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants