Skip to content

Commit

Permalink
Update pandas to 2.0, including fix to prophet test (#765)
Browse files Browse the repository at this point in the history
* 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](pandas-dev/pandas@v0.23.3...v2.0.0)

---
updated-dependencies:
- dependency-name: pandas
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>

* 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] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ashley Scillitoe <[email protected]>
  • Loading branch information
dependabot[bot] and ascillitoe authored Apr 17, 2023
1 parent b1cd5a7 commit c814758
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion alibi_detect/od/tests/test_prophet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion requirements/docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c814758

Please sign in to comment.