From cf75862a368a3918ddac61d3ff91943596431b52 Mon Sep 17 00:00:00 2001 From: Matthew Laurence Chen Date: Mon, 9 Sep 2024 14:04:08 +0000 Subject: [PATCH] chore: clean up `to_gbq` testing and doc --- tests/system/small/test_dataframe.py | 3 +-- third_party/bigframes_vendored/pandas/core/frame.py | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/system/small/test_dataframe.py b/tests/system/small/test_dataframe.py index f51b597650..932093f9b9 100644 --- a/tests/system/small/test_dataframe.py +++ b/tests/system/small/test_dataframe.py @@ -4658,9 +4658,8 @@ def test_to_gbq_and_create_dataset(session, scalars_df_index, dataset_id_not_cre def test_to_gbq_table_labels(scalars_df_index): - destination_table = "bigframes-dev.bigframes_tests_sys.table_labels" result_table = scalars_df_index.to_gbq( - destination_table, labels={"test": "labels"}, if_exists="replace" + labels={"test": "labels"}, if_exists="replace" ) client = scalars_df_index._session.bqclient table = client.get_table(result_table) diff --git a/third_party/bigframes_vendored/pandas/core/frame.py b/third_party/bigframes_vendored/pandas/core/frame.py index fe1c8a12ff..dc9c051cc1 100644 --- a/third_party/bigframes_vendored/pandas/core/frame.py +++ b/third_party/bigframes_vendored/pandas/core/frame.py @@ -469,7 +469,7 @@ def to_gbq( specified in `clustering_columns`. labels (dict[str, str], default None): - Specifies table labels within BigQuery + Specifies table labels within BigQuery. Returns: str: