From 96b550f0646b560c548ef01de4eb8321a6db7dbb Mon Sep 17 00:00:00 2001 From: Jaap de Ruyter Date: Thu, 22 Jan 2026 09:18:27 +0100 Subject: [PATCH] Restrict pandas <3.0 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). --- requirements.txt | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 09fdde2418..f0c505671d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ numba>=0.54.0 matplotlib>=3.3, <3.8.4 networkx>=2.6 numpy>=1.18.5,<2.0.0 -pandas>=1.0.1,!=1.5.0 +pandas>=1.0.1,!=1.5.0,<3.0 Pillow>=7.1 pyyaml scikit-image>=0.17 diff --git a/setup.py b/setup.py index 0c99c8d101..39a67c2eed 100644 --- a/setup.py +++ b/setup.py @@ -66,7 +66,7 @@ def pytorch_config_paths() -> list[str]: "matplotlib>=3.3,<3.9,!=3.7.0,!=3.7.1", "networkx>=2.6", "numpy>=1.18.5,<2.0.0", - "pandas>=1.0.1,!=1.5.0", + "pandas>=1.0.1,!=1.5.0,<3.0", "scikit-image>=0.17", "scikit-learn>=1.0", "scipy>=1.9",