File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
92
92
pandas.read_sas \
93
93
pandas.read_spss \
94
94
pandas.read_sql_query \
95
- pandas.read_gbq \
96
95
pandas.io.stata.StataReader.data_label \
97
96
pandas.io.stata.StataReader.value_labels \
98
97
pandas.io.stata.StataReader.variable_labels \
Original file line number Diff line number Diff line change @@ -162,6 +162,19 @@ def read_gbq(
162
162
--------
163
163
pandas_gbq.read_gbq : This function in the pandas-gbq library.
164
164
DataFrame.to_gbq : Write a DataFrame to Google BigQuery.
165
+
166
+ Examples
167
+ --------
168
+ Example taken from `Google BigQuery documentation
169
+ <https://cloud.google.com/bigquery/docs/pandas-gbq-migration>`_
170
+
171
+ >>> sql = "SELECT name FROM table_name WHERE state = 'TX' LIMIT 100;"
172
+ >>> df = pd.read_gbq(sql, dialect="standard") # doctest: +SKIP
173
+ >>> project_id = "your-project-id" # doctest: +SKIP
174
+ >>> df = pd.read_gbq(sql,
175
+ ... project_id=project_id,
176
+ ... dialect="standard"
177
+ ... ) # doctest: +SKIP
165
178
"""
166
179
pandas_gbq = _try_import ()
167
180
You can’t perform that action at this time.
0 commit comments