Skip to content

Commit 40fdbea

Browse files
Blake HawkinsWillAyd
Blake Hawkins
authored andcommitted
Fix PR06 docstring errors in sql.py and gbq.py (#30075)
1 parent e26c489 commit 40fdbea

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

pandas/io/gbq.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ def read_gbq(
5050
col_order : list(str), optional
5151
List of BigQuery column names in the desired order for results
5252
DataFrame.
53-
reauth : boolean, default False
53+
reauth : bool, default False
5454
Force Google BigQuery to re-authenticate the user. This is useful
5555
if multiple accounts are used.
56-
auth_local_webserver : boolean, default False
56+
auth_local_webserver : bool, default False
5757
Use the `local webserver flow`_ instead of the `console flow`_
5858
when getting user credentials.
5959

pandas/io/sql.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -277,14 +277,14 @@ def read_sql_query(
277277
278278
Parameters
279279
----------
280-
sql : string SQL query or SQLAlchemy Selectable (select or text object)
280+
sql : str SQL query or SQLAlchemy Selectable (select or text object)
281281
SQL query to be executed.
282-
con : SQLAlchemy connectable(engine/connection), database string URI,
282+
con : SQLAlchemy connectable(engine/connection), database str URI,
283283
or sqlite3 DBAPI2 connection
284284
Using SQLAlchemy makes it possible to use any DB supported by that
285285
library.
286286
If a DBAPI2 object, only sqlite3 is supported.
287-
index_col : string or list of strings, optional, default: None
287+
index_col : str or list of strings, optional, default: None
288288
Column(s) to set as index(MultiIndex).
289289
coerce_float : bool, default True
290290
Attempts to convert values of non-string, non-numeric objects (like
@@ -355,18 +355,18 @@ def read_sql(
355355
356356
Parameters
357357
----------
358-
sql : string or SQLAlchemy Selectable (select or text object)
358+
sql : str or SQLAlchemy Selectable (select or text object)
359359
SQL query to be executed or a table name.
360-
con : SQLAlchemy connectable (engine/connection) or database string URI
361-
or DBAPI2 connection (fallback mode)
360+
con : SQLAlchemy connectable (engine/connection) or database str URI
361+
or DBAPI2 connection (fallback mode)'
362362
363363
Using SQLAlchemy makes it possible to use any DB supported by that
364364
library. If a DBAPI2 object, only sqlite3 is supported. The user is responsible
365365
for engine disposal and connection closure for the SQLAlchemy connectable. See
366366
`here <https://docs.sqlalchemy.org/en/13/core/connections.html>`_
367-
index_col : string or list of strings, optional, default: None
367+
index_col : str or list of strings, optional, default: None
368368
Column(s) to set as index(MultiIndex).
369-
coerce_float : boolean, default True
369+
coerce_float : bool, default True
370370
Attempts to convert values of non-string, non-numeric objects (like
371371
decimal.Decimal) to floating point, useful for SQL result sets.
372372
params : list, tuple or dict, optional, default: None

0 commit comments

Comments
 (0)