From c81475851da17d224bd841071193b972f1fe5f48 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Apr 2023 13:08:51 +0100 Subject: [PATCH] Update pandas to 2.0, including fix to prophet test (#765) * Update pandas requirement from <2.0.0,>=0.23.3 to >=0.23.3,<3.0.0 Updates the requirements on [pandas](https://github.com/pandas-dev/pandas) to permit the latest version. - [Release notes](https://github.com/pandas-dev/pandas/releases) - [Changelog](https://github.com/pandas-dev/pandas/blob/main/RELEASE.md) - [Commits](https://github.com/pandas-dev/pandas/compare/v0.23.3...v2.0.0) --- updated-dependencies: - dependency-name: pandas dependency-type: direct:production ... Signed-off-by: dependabot[bot] * Fix prophet test for pandas 2.0 * Update lower bound to >=1.0.0 * Update lower bound to >=1.0.0 in setup.py --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ashley Scillitoe --- 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 9ccd2c11d..42d98b67f 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(pd.datetime.today(), periods=100), + 'ds': pd.date_range(datetime.date.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 fe2c6c187..6765a4f50 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>=0.23.3, <2.0.0 +pandas>=1.0.0, <3.0.0 matplotlib>=3.0.0, <4.0.0 diff --git a/setup.py b/setup.py index 9b90a3562..b8a6134aa 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>=0.23.3, <2.0.0", + "pandas>=1.0.0, <3.0.0", "Pillow>=5.4.1, <10.0.0", "opencv-python>=3.2.0, <5.0.0", "scipy>=1.3.0, <2.0.0",