We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fdaa01 commit 6f39c4fCopy full SHA for 6f39c4f
pandas/io/sql.py
@@ -473,8 +473,9 @@ def read_sql_query(
473
--------
474
>>> from sqlalchemy import create_engine # doctest: +SKIP
475
>>> engine = create_engine("sqlite:///database.db") # doctest: +SKIP
476
+ >>> sql_query = "SELECT int_column FROM test_data" # doctest: +SKIP
477
>>> with engine.connect() as conn, conn.begin(): # doctest: +SKIP
- ... data = pd.read_sql_table("data", conn) # doctest: +SKIP
478
+ ... data = pd.read_sql_query(sql_query, conn) # doctest: +SKIP
479
"""
480
481
check_dtype_backend(dtype_backend)
0 commit comments