File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,9 @@ def run_quickstart(project_id: str):
29
29
import bigframes .pandas as bpd
30
30
31
31
# Set BigQuery DataFrames options
32
+ # Note: The project option is not required in all environments.
33
+ # On BigQuery Studio, the project ID is automatically detected.
32
34
bpd .options .bigquery .project = your_gcp_project_id
33
- bpd .options .bigquery .location = "us"
34
35
35
36
# Create a DataFrame from a BigQuery table
36
37
query_or_table = "bigquery-public-data.ml_datasets.penguins"
Original file line number Diff line number Diff line change @@ -26,7 +26,14 @@ def test_bigquery_dataframes_set_options():
26
26
REGION = "US" # @param {type:"string"}
27
27
28
28
# Set BigQuery DataFrames options
29
+ # Note: The project option is not required in all environments.
30
+ # On BigQuery Studio, the project ID is automatically detected.
29
31
bpd .options .bigquery .project = PROJECT_ID
32
+
33
+ # Note: The location option is not required.
34
+ # It defaults to the location of the first table or query
35
+ # passed to read_gbq(). For APIs where a location can't be
36
+ # auto-detected, the location defaults to the "US" location.
30
37
bpd .options .bigquery .location = REGION
31
38
32
39
# [END bigquery_dataframes_set_options]
You can’t perform that action at this time.
0 commit comments