Skip to content

Commit

Permalink
DOC: read_sql_query docstring contraine wrong examples #58094 (#58095)
Browse files Browse the repository at this point in the history
DOC: read_sql_query docstring contraine wrong examples #58094
  • Loading branch information
Tonow committed Apr 2, 2024
1 parent 0fdaa01 commit 6f39c4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pandas/io/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,9 @@ def read_sql_query(
--------
>>> from sqlalchemy import create_engine # doctest: +SKIP
>>> engine = create_engine("sqlite:///database.db") # doctest: +SKIP
>>> sql_query = "SELECT int_column FROM test_data" # doctest: +SKIP
>>> with engine.connect() as conn, conn.begin(): # doctest: +SKIP
... data = pd.read_sql_table("data", conn) # doctest: +SKIP
... data = pd.read_sql_query(sql_query, conn) # doctest: +SKIP
"""

check_dtype_backend(dtype_backend)
Expand Down

0 comments on commit 6f39c4f

Please sign in to comment.