-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
DOC: Clarify dispatch behavior of read_sql #18925
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
Conversation
pandas/io/sql.py
Outdated
Parameters | ||
---------- | ||
sql : string or SQLAlchemy Selectable (select or text object) | ||
SQL query to be executed. | ||
con : SQLAlchemy connectable(engine/connection) or database string URI | ||
SQL query to be executed or a table name from which to select rows. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would leave out "from which to select rows" (there is no way to do this)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
pandas/io/sql.py
Outdated
``read_sql_query`` (for backward compatibility). It will delegate | ||
to the specific function depending on the provided input. | ||
|
||
For example, a SQL query will be routed to ``read_sql_query``, while a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would leave out "For example", as there are no other options.
(I would also keep those two paragraphs as a single paragraph, as it is explaining one topic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Codecov Report
@@ Coverage Diff @@
## master #18925 +/- ##
==========================================
- Coverage 91.59% 91.57% -0.03%
==========================================
Files 150 150
Lines 48959 48959
==========================================
- Hits 44843 44833 -10
- Misses 4116 4126 +10
Continue to review full report at Codecov.
|
@jorisvandenbossche: comments addressed. PTAL. |
thanks! |
* DOC: Clarify dispatch behavior of read_sql [ci skip] Closes pandas-devgh-18861. * Address reviewer comments
Wasn't particularly clear or prominent in the docs.
Closes #18861.