From d5fd18f0edda257cde20d7fcf9dab637eaa3f609 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Fri, 18 Oct 2024 20:16:57 +0200 Subject: [PATCH] Dependencies: Update to pandas 2.2 on PyMongo adapter --- cratedb_toolkit/adapter/pymongo/collection.py | 4 ++-- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cratedb_toolkit/adapter/pymongo/collection.py b/cratedb_toolkit/adapter/pymongo/collection.py index 523f80d9..2276f02d 100644 --- a/cratedb_toolkit/adapter/pymongo/collection.py +++ b/cratedb_toolkit/adapter/pymongo/collection.py @@ -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.connection, index=False, # TODO: Handle `append` vs. `replace`. if_exists="append", @@ -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.connection, index=False, # TODO: Handle `append` vs. `replace`. if_exists="append", diff --git a/pyproject.toml b/pyproject.toml index 431f22f0..df06bd71 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -177,7 +177,7 @@ mongodb = [ ] pymongo = [ "jessiql==1.0.0rc1", - "pandas==2.1.*", + "pandas<2.3", "pymongo<4.9", "sqlalchemy<2", ]