Skip to content

Restrict pandas dependency to version <3.0 - #3186

Merged
MMathisLab merged 1 commit into
DeepLabCut:mainfrom
deruyter92:jaap/restrict_pandas_version_upperbound
Jan 22, 2026
Merged

Restrict pandas dependency to version <3.0#3186
MMathisLab merged 1 commit into
DeepLabCut:mainfrom
deruyter92:jaap/restrict_pandas_version_upperbound

Conversation

@deruyter92

@deruyter92 deruyter92 commented Jan 22, 2026

Copy link
Copy Markdown
Collaborator

Motivation
Pandas just released version 3.0, which is incompatible for our codebase. This causes installation issues and also causes our CI workflows to fail.

This PR restricts the requirement to version <3.0 as a quick fix.

Changes:
added upperbound for pandas <3.0 in setup.py and requirements.txt

Possible follow-up
Some minor adjustments are required later if we want to allow installation of this newer pandas version (to_hdf method currently fails for positional arg key, some hdf5 files become read-only causing issues). Meanwhile we can work on migration to polars as replacement of pandas.

Pandas just released version 3.0, which is incompatible for our codebase. This Commit restricts the requirement to version <3.0.

Some minor adjustments are required to allow this new pandas version later (to_hdf method currently fails for positional arg `key`, some hdf5 files become read-only causing issues).
@deruyter92
deruyter92 marked this pull request as ready for review January 22, 2026 09:47
@deruyter92
deruyter92 requested a review from MMathisLab January 22, 2026 09:51
@MMathisLab
MMathisLab merged commit 6b439a7 into DeepLabCut:main Jan 22, 2026
10 checks 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