@@ -95,29 +95,31 @@ quickly (but at an `increased cost
95
95
<https://cloud.google.com/bigquery/pricing#storage-api> `__) by setting
96
96
``use_bqstorage_api `` to ``True ``.
97
97
98
- 1. Enable the BigQuery Storage API on the project you are using to run
99
- queries.
98
+ #. Enable the BigQuery Storage API on the project you are using to run
99
+ queries.
100
100
101
- `Enable the API
102
- <https://console.cloud.google.com/apis/library/bigquerystorage.googleapis.com> `__.
103
- 2. Ensure you have the `* bigquery.readsessions.create permission*
104
- <https://cloud.google.com/bigquery/docs/access-control#bq-permissions> `__. to
105
- create BigQuery Storage API read sessions. This permission is provided by
106
- the `* bigquery.user* role
107
- <https://cloud.google.com/bigquery/docs/access-control#roles> `__.
108
- 4. Install the ``google-cloud-bigquery-storage ``, ``fastavro ``, and
109
- ``python-snappy `` packages.
101
+ `Enable the API
102
+ <https://console.cloud.google.com/apis/library/bigquerystorage.googleapis.com> `__.
103
+ #. Ensure you have the `bigquery.readsessions.create permission
104
+ <https://cloud.google.com/bigquery/docs/access-control#bq-permissions> `__. to
105
+ create BigQuery Storage API read sessions. This permission is provided by
106
+ the `bigquery.user role
107
+ <https://cloud.google.com/bigquery/docs/access-control#roles> `__.
108
+ #. Install the ``google-cloud-bigquery-storage ``, ``fastavro ``, and
109
+ ``python-snappy `` packages.
110
110
111
- With pip:
111
+ With pip:
112
112
113
- .. code-block:: sh
113
+ .. code-block :: sh
114
114
115
- pip install --upgrade google-cloud-bigquery-storage fastavro python-snappy
115
+ pip install --upgrade google-cloud-bigquery-storage fastavro python-snappy
116
116
117
- With conda:
117
+ With conda:
118
118
119
- conda install -c conda-forge google-cloud-bigquery-storage fastavro python-snappy
120
- 4. Set ``use_bqstorage_api `` to ``True `` when calling the
119
+ .. code-block :: sh
120
+
121
+ conda install -c conda-forge google-cloud-bigquery-storage fastavro python-snappy
122
+ #. Set ``use_bqstorage_api `` to ``True `` when calling the
121
123
:func: `~pandas_gbq.read_gbq ` function. As of the ``google-cloud-bigquery ``
122
124
package, version 1.11.1 or later,the function will fallback to the
123
125
BigQuery API if the BigQuery Storage API cannot be used, such as with
0 commit comments