Skip to content

DOC: read_sql_query docstring contraine wrong examples #58094 #58095

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

Tonow
Copy link
Contributor

@Tonow Tonow commented Mar 31, 2024

pandas/io/sql.py Outdated
@@ -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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
>>> sql_query = 'SELECT int_column FROM test_data # doctest: +SKIP
>>> sql_query = "SELECT int_column FROM test_data" # doctest: +SKIP

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mroeschke 👍 I do this to fast in the web IDE 😓

@mroeschke mroeschke added the Docs label Apr 1, 2024
@Tonow Tonow force-pushed the read_sql_query_wrong_docsting branch from 04250bd to c4574a2 Compare April 2, 2024 01:06
@mroeschke mroeschke added this to the 3.0 milestone Apr 2, 2024
@mroeschke mroeschke merged commit 6f39c4f into pandas-dev:main Apr 2, 2024
46 checks passed
@mroeschke
Copy link
Member

Thanks @Tonow

pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this pull request May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOC: read_sql_query docstring contraine wrong examples
2 participants