From b6c4a08c14992e78fd41da363628b65a25947095 Mon Sep 17 00:00:00 2001 From: Shuowei Li Date: Fri, 10 Jul 2026 22:54:58 +0000 Subject: [PATCH 1/2] docs: add project ID to pandas-gbq run sample --- packages/pandas-gbq/README.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/pandas-gbq/README.rst b/packages/pandas-gbq/README.rst index 560b0c58a678..0bf67630e695 100644 --- a/packages/pandas-gbq/README.rst +++ b/packages/pandas-gbq/README.rst @@ -45,8 +45,15 @@ Perform a query import pandas_gbq + # If running in your local environment or Colab, use the code below and specify the GCP project ID "PROJECT_ID" + # result_dataframe = pandas_gbq.read_gbq("SELECT * FROM bigquery-public-data.usa_names.usa_1910_2013 LIMIT 10", project_id=PROJECT_ID) + result_dataframe = pandas_gbq.read_gbq("SELECT column FROM dataset.table WHERE value = 'something'") +.. note:: + + A Google Cloud project ID can be quickly obtained as described `here `_. + Upload a dataframe ~~~~~~~~~~~~~~~~~~ From ef687786636b955acd4d6be596559bd437fe5cf0 Mon Sep 17 00:00:00 2001 From: Shuowei Li Date: Fri, 10 Jul 2026 16:25:53 -0700 Subject: [PATCH 2/2] Update packages/pandas-gbq/README.rst Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- packages/pandas-gbq/README.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/pandas-gbq/README.rst b/packages/pandas-gbq/README.rst index 0bf67630e695..a398c08f9210 100644 --- a/packages/pandas-gbq/README.rst +++ b/packages/pandas-gbq/README.rst @@ -45,8 +45,8 @@ Perform a query import pandas_gbq - # If running in your local environment or Colab, use the code below and specify the GCP project ID "PROJECT_ID" - # result_dataframe = pandas_gbq.read_gbq("SELECT * FROM bigquery-public-data.usa_names.usa_1910_2013 LIMIT 10", project_id=PROJECT_ID) + # If running in your local environment or Colab, use the code below and specify your GCP project ID + # result_dataframe = pandas_gbq.read_gbq("SELECT * FROM bigquery-public-data.usa_names.usa_1910_2013 LIMIT 10", project_id="your-project-id") result_dataframe = pandas_gbq.read_gbq("SELECT column FROM dataset.table WHERE value = 'something'")