Skip to content

Commit

Permalink
Dependencies: Update to pandas 2.2
Browse files Browse the repository at this point in the history
Error: AttributeError: 'Engine' object has no attribute 'cursor'
Solution: https://stackoverflow.com/a/77949093
  • Loading branch information
amotl committed Oct 18, 2024
1 parent 8989de3 commit ef8c6ea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cratedb_toolkit/adapter/pymongo/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def insert_returning_id(pd_table, conn, keys, data_iter):
data.to_sql(
name=self.name,
schema=self.database.name,
con=cratedb.engine,
con=cratedb.connection,
index=False,
# TODO: Handle `append` vs. `replace`.
if_exists="append",
Expand Down Expand Up @@ -144,7 +144,7 @@ def gen() -> Iterator[Mapping[str, Any]]:
data.to_sql(
name=self.name,
schema=self.database.name,
con=cratedb.engine,
con=cratedb.connection,
index=False,
# TODO: Handle `append` vs. `replace`.
if_exists="append",
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ mongodb = [
]
pymongo = [
"jessiql==1.0.0rc1",
"pandas==2.1.*",
"pandas<2.3",
"pymongo<4.9",
"sqlalchemy<2",
]
Expand Down

0 comments on commit ef8c6ea

Please sign in to comment.