From 387f70fbaa13564d02c9c35b95da5f414aa57a8c Mon Sep 17 00:00:00 2001 From: Shobhit Singh Date: Mon, 2 Jun 2025 22:03:41 +0000 Subject: [PATCH 1/2] docs: fix docstrings to improve html rendering of code examples --- third_party/bigframes_vendored/pandas/core/computation/eval.py | 1 + third_party/bigframes_vendored/pandas/core/indexes/accessor.py | 1 + third_party/bigframes_vendored/pandas/io/gbq.py | 1 + 3 files changed, 3 insertions(+) diff --git a/third_party/bigframes_vendored/pandas/core/computation/eval.py b/third_party/bigframes_vendored/pandas/core/computation/eval.py index 56d60174a6..d3d11a9c2a 100644 --- a/third_party/bigframes_vendored/pandas/core/computation/eval.py +++ b/third_party/bigframes_vendored/pandas/core/computation/eval.py @@ -171,6 +171,7 @@ def eval( with plain ol' Python evaluation. **Examples:** + >>> import bigframes.pandas as bpd >>> bpd.options.display.progress_bar = None diff --git a/third_party/bigframes_vendored/pandas/core/indexes/accessor.py b/third_party/bigframes_vendored/pandas/core/indexes/accessor.py index 469f35f181..dfb1cf9efc 100644 --- a/third_party/bigframes_vendored/pandas/core/indexes/accessor.py +++ b/third_party/bigframes_vendored/pandas/core/indexes/accessor.py @@ -204,6 +204,7 @@ def isocalendar(self): Calculate year, week, and day according to the ISO 8601 standard. **Examples:** + >>> import pandas as pd >>> import bigframes.pandas as bpd >>> bpd.options.display.progress_bar = None diff --git a/third_party/bigframes_vendored/pandas/io/gbq.py b/third_party/bigframes_vendored/pandas/io/gbq.py index aa4d862b65..a0d4092571 100644 --- a/third_party/bigframes_vendored/pandas/io/gbq.py +++ b/third_party/bigframes_vendored/pandas/io/gbq.py @@ -67,6 +67,7 @@ def read_gbq( >>> df = bpd.read_gbq("bigquery-public-data.ml_datasets.penguins") Read table path with wildcard suffix and filters: + >>> df = bpd.read_gbq_table("bigquery-public-data.noaa_gsod.gsod19*", filters=[("_table_suffix", ">=", "30"), ("_table_suffix", "<=", "39")]) Preserve ordering in a query input. From 1ef1922f56bbd6b4d4a9055b423b54aeecff8c35 Mon Sep 17 00:00:00 2001 From: Shobhit Singh Date: Mon, 2 Jun 2025 22:07:04 +0000 Subject: [PATCH 2/2] fix examples docstring in one more file --- third_party/bigframes_vendored/pandas/core/frame.py | 1 + 1 file changed, 1 insertion(+) diff --git a/third_party/bigframes_vendored/pandas/core/frame.py b/third_party/bigframes_vendored/pandas/core/frame.py index c1b5b5a86b..6c927a5c26 100644 --- a/third_party/bigframes_vendored/pandas/core/frame.py +++ b/third_party/bigframes_vendored/pandas/core/frame.py @@ -4253,6 +4253,7 @@ def corrwith( correlations. **Examples:** + >>> import bigframes.pandas as bpd >>> bpd.options.display.progress_bar = None