We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73fd026 commit c4574a2Copy full SHA for c4574a2
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