Skip to content

Commit

Permalink
pin pandas
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeitsperre committed Oct 23, 2024
1 parent 4bd0a35 commit 4491660
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion environment-dev.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: rook-dev
channels:
- conda-forge
- defaults
dependencies:
- python >=3.9,<3.13
# development
Expand Down
2 changes: 0 additions & 2 deletions environment-docs.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# conda env create -f environment-docs.yml
name: rook
channels:
- conda-forge
- defaults
dependencies:
- python >=3.9,<3.12
- pywps >=4.6
Expand Down
3 changes: 1 addition & 2 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: rook
channels:
- conda-forge
- defaults
dependencies:
- python >=3.9,<3.12
- pywps >=4.5.2,<4.7
Expand All @@ -27,7 +26,7 @@ dependencies:
- graphviz
# catalog
- intake
- pandas
- pandas <=1.5.3 # limited by daops and sqlalchemy
- sqlalchemy >=1.4.45,<2.0 # Needed to pass existing tests
- aiohttp
# dashboard
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ dependencies = [
"pydot",
# catalog
"intake",
"pandas >=1.5.3",
"pandas <=1.5.3", # limited by daops and sqlalchemy
"SQLAlchemy >=1.4.45,<2.0",
"aiohttp",
# dashboard
Expand Down
1 change: 1 addition & 0 deletions src/rook/catalog/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def to_db(self):
# db connection
session = get_session()
try:
# FIXME: This pattern is deprecated in Pandas v2.0+
df.to_sql(
name=self.table_name,
con=session.connection(),
Expand Down

0 comments on commit 4491660

Please sign in to comment.