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 3a68472
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cratedb_toolkit/cfr/systable.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def read_table(self, tablename: str) -> pl.DataFrame:
logger.debug(f"Running SQL: {sql}")
return pl.read_database(
query=sql, # noqa: S608
connection=self.adapter.engine,
connection=self.adapter.connection,
infer_schema_length=1000,
)

Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ all = [
"cratedb-toolkit[full,influxdb,mongodb]",
]
cfr = [
"pandas<2.2",
"pandas<2.3",
"pyarrow<17.1",
]
cloud = [
Expand Down Expand Up @@ -156,7 +156,7 @@ io = [
"cr8",
"dask[dataframe]>=2020",
"fsspec[s3,http]",
"pandas<3,>=1",
"pandas<2.3,>=1",
"sqlalchemy>=2",
"universal-pathlib<0.3",
]
Expand All @@ -177,7 +177,7 @@ mongodb = [
]
pymongo = [
"jessiql==1.0.0rc1",
"pandas==2.1.*",
"pandas<2.2",
"pymongo<4.9",
"sqlalchemy<2",
]
Expand Down

0 comments on commit 3a68472

Please sign in to comment.