We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the issue: Whenever using DASK to_sql method (https://docs.dask.org/en/stable/generated/dask.dataframe.to_sql.html), the following error is shown
This error is related with the latest changes from pandas v2, where the to_sql method no longer expects a cursor but rather a connection.
I believe that to fix this issue the change should be done in the method _to_sql_chunk from this file
Minimal Complete Verifiable Example:
import pandas as pd import dask.dataframe as dd name='test' schema_name = 'schema_name' if_exists = 'replace' uri = 'add here database uri' df = pd.DataFrame([ {'i':i, 's':str(i)*2 } for i in range(4) ]) ddf = dd.from_pandas(df, npartitions=2) ddf.to_sql(name=name, uri=uri, schema=schema_name, index=False, if_exists=if_exists)
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the issue:
Whenever using DASK to_sql method (https://docs.dask.org/en/stable/generated/dask.dataframe.to_sql.html), the following error is shown
This error is related with the latest changes from pandas v2, where the to_sql method no longer expects a cursor but rather a connection.
I believe that to fix this issue the change should be done in the method _to_sql_chunk from this file
Minimal Complete Verifiable Example:
Anything else we need to know?:
Environment:
The text was updated successfully, but these errors were encountered: