Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python: Fix deprecation of pandas._testing.makeTimeDataFrame #240

Merged
merged 2 commits into from
Jan 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/test-python-sqlalchemy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:
matrix:
os: [ 'ubuntu-latest' ]
python-version: [ '3.11', '3.12' ]
cratedb-version: [ 'nightly' ]
cratedb-version: [ '5.5.3' ]

services:
cratedb:
image: crate/crate:nightly
image: crate/crate:${{ matrix.cratedb-version }}
ports:
- 4200:4200
- 5432:5432
Expand Down
2 changes: 1 addition & 1 deletion by-language/python-sqlalchemy/insert_dask.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"""
import dask.dataframe as dd
from dask.diagnostics import ProgressBar
from pandas._testing import makeTimeDataFrame
from crate.client.sqlalchemy.support import insert_bulk
from pueblo.testing.pandas import makeTimeDataFrame


DBURI = "crate://localhost:4200"
Expand Down
4 changes: 2 additions & 2 deletions by-language/python-sqlalchemy/insert_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@
import colorlog
import sqlalchemy as sa
from colorlog.escape_codes import escape_codes
from pandas._testing import makeTimeDataFrame

from crate.client.sqlalchemy.support import insert_bulk
from pueblo.testing.pandas import makeTimeDataFrame


logger = logging.getLogger(__name__)

Expand Down
1 change: 1 addition & 0 deletions by-language/python-sqlalchemy/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
pytest<8
pytest-cov<5
pueblo @ git+https://github.com/pyveci/pueblo.git@pandas-testing