Skip to content

ENH:  #54741

@mikekeith52

Description

@mikekeith52

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

Problem Description

When using connection objects in pd.read_sql(), if non sqlalchemy engine objects are passed to the con argument, it raises this warning:

UserWarning: pandas only supports SQLAlchemy connectable (engine/connection) or database string URI or sqlite3 DBAPI2 connection. Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.

Feature Description

Get rid of the warning. It is clearly not relevant anymore. See #51015. I can use "untested" objects that work so I don't think this warning has any utility.

Alternative Solutions

Fix pd.read_sql() so that the engine object from sqlalchemy > 2.0 works.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs InfoClarification about behavior needed to assess issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions