File tree 3 files changed +15
-21
lines changed
3 files changed +15
-21
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,16 @@ Enhancements
39
39
(contributed by @johnpaton)
40
40
- Read ``project_id `` in :func: `to_gbq ` from provided ``credentials `` if
41
41
available (contributed by @daureg)
42
+ <<<<<<< Updated upstream
42
43
- ``read_gbq `` uses the timezone-aware ``DatetimeTZDtype(unit='ns',
43
44
tz='UTC') `` dtype for BigQuery ``TIMESTAMP `` columns. (:issue: `269 `)
45
+ ||||||| merged common ancestors
46
+ =======
47
+ - Add ``use_bqstorage_api `` to :func: `read_gbq `. The BigQuery Storage API can
48
+ be used to download large query results (>125 MB) more quickly. If the BQ
49
+ Storage API can't be used, the BigQuery API is used instead. (:issue: `133 `,
50
+ :issue: `270 `)
51
+ >>>>>>> Stashed changes
44
52
45
53
.. _changelog-0.9.0 :
46
54
Original file line number Diff line number Diff line change @@ -84,3 +84,10 @@ DATETIME datetime64[ns]
84
84
TIME datetime64[ns]
85
85
DATE datetime64[ns]
86
86
================== =========================
87
+
88
+ .. _reading-bqstorage-api :
89
+
90
+ Using the BigQuery Storage API
91
+ ------------------------------
92
+
93
+ The BigQuery Storage API
Original file line number Diff line number Diff line change @@ -885,27 +885,6 @@ def read_gbq(
885
885
-------
886
886
df: DataFrame
887
887
DataFrame representing results of query.
888
-
889
- Examples
890
- --------
891
-
892
- Use the BigQuery Storage API to fetch results quickly, but at an addition
893
- cost. Due to a known issue in the BigQuery Storage API, you must write
894
- your query results to a destination table.
895
-
896
- >>> pandas_gbq.read_gbq(
897
- ... query_string,
898
- ... configuration={
899
- ... 'query': {
900
- ... 'destinationTable': {
901
- ... 'projectId': 'your-project',
902
- ... 'datasetId': 'destination_dataset',
903
- ... 'tableId': 'new_table_name',
904
- ... }
905
- ... }
906
- ... },
907
- ... use_bqstorage_api=True,
908
- ... )
909
888
"""
910
889
global context
911
890
You can’t perform that action at this time.
0 commit comments