From 6f39c4fa1fecec6fe447ec89bd1409d1427d1784 Mon Sep 17 00:00:00 2001 From: Tonow Date: Tue, 2 Apr 2024 03:41:32 +0200 Subject: [PATCH] DOC: read_sql_query docstring contraine wrong examples #58094 (#58095) DOC: read_sql_query docstring contraine wrong examples #58094 --- pandas/io/sql.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pandas/io/sql.py b/pandas/io/sql.py index aa9d0d88ae69a..8c4c4bac884e5 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -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)