Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
import pyarrow as pa
import pytest

import bigframes._config

# Make sure SettingWithCopyWarning is ignored if it exists.
# It was removed in pandas 3.0.
if hasattr(pd.errors, "SettingWithCopyWarning"):
Expand Down Expand Up @@ -54,7 +52,6 @@ def default_doctest_imports(doctest_namespace, polars_session_or_bpd):
doctest_namespace["pd"] = pd
doctest_namespace["pa"] = pa
doctest_namespace["bpd"] = polars_session_or_bpd
bigframes._config.options.display.progress_bar = None

# TODO(tswast): Consider setting the numpy printoptions here for better
# compatibility across numpy versions.
Expand Down
7 changes: 5 additions & 2 deletions third_party/bigframes_vendored/pandas/io/gbq.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def read_gbq(

Preserve ordering in a query input.

>>> bpd.options.display.progress_bar = None
>>> df = bpd.read_gbq('''
... SELECT
... -- Instead of an ORDER BY clause on the query, use
Expand All @@ -86,9 +87,11 @@ def read_gbq(
... WHERE year = 2016
... GROUP BY pitcherFirstName, pitcherLastName
... ''', index_col="rowindex")
>>> df.head(2)
>>> print("START_OF_OUTPUT"); df.head(2) # doctest: +ELLIPSIS,+NORMALIZE_WHITESPACE
START_OF_OUTPUT
...
pitcherFirstName pitcherLastName averagePitchSpeed
rowindex
...
1 Albertin Chapman 96.514113
2 Zachary Britton 94.591039
<BLANKLINE>
Expand Down
Loading