Skip to content

Commit 59ab400

Browse files
authored
FIX: clarify warning in read_sql_query() (#46045)
1 parent b5ce22c commit 59ab400

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/io/sql.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -748,9 +748,9 @@ def pandasSQL_builder(con, schema: str | None = None):
748748
return SQLDatabase(con, schema=schema)
749749

750750
warnings.warn(
751-
"pandas only support SQLAlchemy connectable(engine/connection) or"
752-
"database string URI or sqlite3 DBAPI2 connection"
753-
"other DBAPI2 objects are not tested, please consider using SQLAlchemy",
751+
"pandas only supports SQLAlchemy connectable (engine/connection) or "
752+
"database string URI or sqlite3 DBAPI2 connection. "
753+
"Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.",
754754
UserWarning,
755755
)
756756
return SQLiteDatabase(con)

0 commit comments

Comments
 (0)