Skip to content

Commit bd5d1a4

Browse files
docs: add project ID to pandas-gbq run sample (#17692)
Fixes #<522958409> 🦕 --------- Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 635da34 commit bd5d1a4

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

packages/pandas-gbq/README.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,15 @@ Perform a query
4545
4646
import pandas_gbq
4747
48+
# If running in your local environment or Colab, use the code below and specify your GCP project ID
49+
# result_dataframe = pandas_gbq.read_gbq("SELECT * FROM bigquery-public-data.usa_names.usa_1910_2013 LIMIT 10", project_id="your-project-id")
50+
4851
result_dataframe = pandas_gbq.read_gbq("SELECT column FROM dataset.table WHERE value = 'something'")
4952
53+
.. note::
54+
55+
A Google Cloud project ID can be quickly obtained as described `here <https://docs.cloud.google.com/bigquery/docs/sandbox>`_.
56+
5057
Upload a dataframe
5158
~~~~~~~~~~~~~~~~~~
5259

0 commit comments

Comments
 (0)