-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
QST: Support of SQLAlchemy 2.0 in Pandas #40460
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
Comments
My suggestion is to downgrade to 1.3.23 for now. We're looking into this issue. |
@mickaelandrieu there was just a PR merged that deals with some deprecation warnings: #40471 This might already resolve the compatibility issues with the future sqlalchemy 2.0 as well? |
Hello @jorisvandenbossche, When this PR will be released ? I can try and come back here to tell you 👍 Duly noted @fangchenli, thanks for your answer ! Regards |
It's unclear from that MR if it tackled all 2.0 deprecation warnings; there are (at least) two categories of SQLA deprecations, A complete, official guide for the migration is here. I can confirm that there are numerous SQLA 2.0 warnings thrown in Pandas 1.2.3 (released 2021/03/02), I can install from |
Hi @scnerd, what is the right process to install pandas on master branch ? I'm not really good at Python, but i will help if I can ! Regards, |
@mickaelandrieu pip can accept git repo's like |
Having tested some things on master branch, I get at least the following couple of errors:
|
@mickaelandrieu - One other workaround- I created an engine for this particular pandas method and turned off future ( |
Just to clarify my remark about Frankly, even though the SQLA 2.0 migration guide is great and the changes needed are pretty simple, there's also the concern that these changes are, in some cases, not backwards-compatible with <1.4. This is probably a concern for a library as ubiquitous as Pandas, and means that the upgrades should probably be made in a way that can detect and, when necessary, fall back on the <1.4 conventions. |
SQLAlchemy 2.0 is not out yet BUT SQLAlchemy 1.4 provides a path to prepare the migration to 2.0 (migration guide). People running on 1.4 with SQLALchemy configured to be compatible with the future 2.0 (ie future=True) cannot execute pandas io/sql function without getting What's the plan going forward, except creating a |
the plan is the community needs to figure what should be done and propose PR with full testing none of the core maintains use the sql support much - but could review |
@jreback Got it! |
Fully agree, but I'm not skilled enough to contribute pandas right now : not like I don't want to, I can help for tests/docs but not that much atm |
sqlalchemy 1.4.46 has started raising a sqlalchemy.exc.RemovedIn20Warning for deprecated functionality https://docs.sqlalchemy.org/en/14/changelog/changelog_14.html#change-e67bfa1efbe52ae40aa842124bc40c51 |
After search in Stackoverflow and in your open and closed issues, I can't find any information about the support of SQL Alchemy 2.0 using
pd.to_sql()
Question about pandas
An exemple is better than a talk.
This is the error I get from the CLI output :
For information about the version of every dependency :
Is there a workaround right now or should I avoid using pandas to insert the data into my database ?
Regards,
The text was updated successfully, but these errors were encountered: