From d6e8194d082fbc8134c3f992e6398acd776bc158 Mon Sep 17 00:00:00 2001 From: Alex Athorne Date: Tue, 18 Apr 2023 10:46:40 +0100 Subject: [PATCH] Revert "Update pandas to 2.0, including fix to prophet test (#765)" This reverts commit c81475851da17d224bd841071193b972f1fe5f48. --- alibi_detect/od/tests/test_prophet.py | 2 +- requirements/docs.txt | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/alibi_detect/od/tests/test_prophet.py b/alibi_detect/od/tests/test_prophet.py index 42d98b67f..9ccd2c11d 100644 --- a/alibi_detect/od/tests/test_prophet.py +++ b/alibi_detect/od/tests/test_prophet.py @@ -11,7 +11,7 @@ return_forecast = [True, False] d_fit = { - 'ds': pd.date_range(datetime.date.today(), periods=100), + 'ds': pd.date_range(pd.datetime.today(), periods=100), 'y': np.random.randn(100) } df_fit = pd.DataFrame(data=d_fit) diff --git a/requirements/docs.txt b/requirements/docs.txt index 6765a4f50..fe2c6c187 100644 --- a/requirements/docs.txt +++ b/requirements/docs.txt @@ -14,5 +14,5 @@ ipython>=7.2.0, <9.0.0 # required for executing notebooks nbsphinx # pandoc==2.9.2.1 # NB: as this is not a Python library, it should be installed manually on the system or via a package manager such as `conda` # alibi_detect dependencies (these are installed on ReadTheDocs so are not mocked) numpy>=1.16.2, <2.0.0 -pandas>=1.0.0, <3.0.0 +pandas>=0.23.3, <2.0.0 matplotlib>=3.0.0, <4.0.0 diff --git a/setup.py b/setup.py index 41c3f6db1..4e88fb2b0 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,7 @@ def readme(): install_requires=[ "matplotlib>=3.0.0, <4.0.0", "numpy>=1.16.2, <2.0.0", - "pandas>=1.0.0, <3.0.0", + "pandas>=0.23.3, <2.0.0", "Pillow>=5.4.1, <10.0.0", "opencv-python>=3.2.0, <5.0.0", "scipy>=1.3.0, <2.0.0",