@@ -30,9 +30,7 @@ def read_gbq(
30
30
configuration : Optional [Dict [str , Any ]] = None ,
31
31
credentials = None ,
32
32
use_bqstorage_api : Optional [bool ] = None ,
33
- private_key = None ,
34
- verbose = None ,
35
- progress_bar_type : Optional [str ] = None ,
33
+ progress_bar_type : str = "NOT_SET" ,
36
34
) -> "DataFrame" :
37
35
"""
38
36
Load data from Google BigQuery.
@@ -125,13 +123,15 @@ def read_gbq(
125
123
``fastavro`` packages.
126
124
127
125
.. versionadded:: 0.25.0
128
- progress_bar_type : Optional, str
126
+ progress_bar_type : str
129
127
If set, use the `tqdm <https://tqdm.github.io/>`__ library to
130
128
display a progress bar while the data downloads. Install the
131
129
``tqdm`` package to use this feature.
132
130
133
131
Possible values of ``progress_bar_type`` include:
134
132
133
+ ``NOT_SET``
134
+ Arg is not set by caller, don't including the argument in pandas-gbq call.
135
135
``None``
136
136
No progress bar.
137
137
``'tqdm'``
@@ -159,6 +159,12 @@ def read_gbq(
159
159
--------
160
160
pandas_gbq.read_gbq : This function in the pandas-gbq library.
161
161
DataFrame.to_gbq : Write a DataFrame to Google BigQuery.
162
+
163
+ Examples
164
+ --------
165
+ Read from google bigquery.
166
+
167
+ >>> pd.read_gbq(query='select 1')
162
168
"""
163
169
pandas_gbq = _try_import ()
164
170
@@ -167,8 +173,7 @@ def read_gbq(
167
173
# START: new kwargs. Don't populate unless explicitly set.
168
174
if use_bqstorage_api is not None :
169
175
kwargs ["use_bqstorage_api" ] = use_bqstorage_api
170
-
171
- if progress_bar_type is not None :
176
+ if progress_bar_type != "NOT_SET" :
172
177
kwargs ["progress_bar_type" ] = progress_bar_type
173
178
# END: new kwargs
174
179
0 commit comments