diff --git a/pandas/io/gbq.py b/pandas/io/gbq.py index b120de1b3011a..19aed15f46491 100644 --- a/pandas/io/gbq.py +++ b/pandas/io/gbq.py @@ -50,10 +50,10 @@ def read_gbq( col_order : list(str), optional List of BigQuery column names in the desired order for results DataFrame. - reauth : boolean, default False + reauth : bool, default False Force Google BigQuery to re-authenticate the user. This is useful if multiple accounts are used. - auth_local_webserver : boolean, default False + auth_local_webserver : bool, default False Use the `local webserver flow`_ instead of the `console flow`_ when getting user credentials. diff --git a/pandas/io/sql.py b/pandas/io/sql.py index 684e602f06d12..b619ea93b981d 100644 --- a/pandas/io/sql.py +++ b/pandas/io/sql.py @@ -277,14 +277,14 @@ def read_sql_query( Parameters ---------- - sql : string SQL query or SQLAlchemy Selectable (select or text object) + sql : str SQL query or SQLAlchemy Selectable (select or text object) SQL query to be executed. - con : SQLAlchemy connectable(engine/connection), database string URI, + con : SQLAlchemy connectable(engine/connection), database str URI, or sqlite3 DBAPI2 connection Using SQLAlchemy makes it possible to use any DB supported by that library. If a DBAPI2 object, only sqlite3 is supported. - index_col : string or list of strings, optional, default: None + index_col : str or list of strings, optional, default: None Column(s) to set as index(MultiIndex). coerce_float : bool, default True Attempts to convert values of non-string, non-numeric objects (like @@ -355,18 +355,18 @@ def read_sql( Parameters ---------- - sql : string or SQLAlchemy Selectable (select or text object) + sql : str or SQLAlchemy Selectable (select or text object) SQL query to be executed or a table name. - con : SQLAlchemy connectable (engine/connection) or database string URI - or DBAPI2 connection (fallback mode) + con : SQLAlchemy connectable (engine/connection) or database str URI + or DBAPI2 connection (fallback mode)' Using SQLAlchemy makes it possible to use any DB supported by that library. If a DBAPI2 object, only sqlite3 is supported. The user is responsible for engine disposal and connection closure for the SQLAlchemy connectable. See `here `_ - index_col : string or list of strings, optional, default: None + index_col : str or list of strings, optional, default: None Column(s) to set as index(MultiIndex). - coerce_float : boolean, default True + coerce_float : bool, default True Attempts to convert values of non-string, non-numeric objects (like decimal.Decimal) to floating point, useful for SQL result sets. params : list, tuple or dict, optional, default: None