Skip to content

feat: add df.bigquery pandas accessor - #2513

Merged
tswast merged 8 commits into
mainfrom
tswast-dataframe-accessor
Mar 13, 2026
Merged

feat: add df.bigquery pandas accessor#2513
tswast merged 8 commits into
mainfrom
tswast-dataframe-accessor

Conversation

@tswast

Copy link
Copy Markdown
Collaborator

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@tswast
tswast requested review from a team as code ownersMarch 13, 2026 13:47
@tswast
tswast requested a review from shuoweilMarch 13, 2026 13:47
@product-auto-labelproduct-auto-labelBot added the size: l Pull request size is large. label Mar 13, 2026
@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@product-auto-labelproduct-auto-labelBot added the api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. label Mar 13, 2026
@tswasttswast added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Mar 13, 2026
@tswast

tswast commented Mar 13, 2026

Copy link
Copy Markdown
CollaboratorAuthor

Not ready yet. Initial version works, but needs tweaking (unit tests fail, and dependence on column order is not great).

@tswasttswast removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Mar 13, 2026
@tswast

Copy link
Copy Markdown
CollaboratorAuthor

I believe I have addressed the unit test failures.

@tswast

Copy link
Copy Markdown
CollaboratorAuthor

docs failure is because the pandas docs are currently down.

WARNING: failed to reach any of the inventories with the following issues:
intersphinx inventory 'https://pandas.pydata.org/pandas-docs/stable/objects.inv' not fetchable due to <class 'requests.exceptions.HTTPError'>: 522 Server Error: <none> for url: https://pandas.pydata.org/pandas-docs/stable/objects.inv

e2e failure appears to be a networking problem for remote functions:

FAILED tests/system/large/functions/test_remote_function.py::test_remote_function_via_session_vpc
FAILED tests/system/large/functions/test_remote_function.py::test_remote_function_via_session_custom_sa
FAILED tests/system/large/functions/test_remote_function.py::test_remote_function_via_session_custom_build_sa[fully-qualified-sa]
FAILED tests/system/large/functions/test_remote_function.py::test_remote_function_via_session_custom_build_sa[just-sa-email]
= 4 failed, 490 passed, 14 skipped, 6 xfailed, 6 xpassed, 476 warnings, 5 retried in 2030.24s (0:33:50) =

@tswast
tswast enabled auto-merge (squash) March 13, 2026 20:35
@tswast
tswast merged commit 91b6c24 into mainMar 13, 2026
20 of 25 checks passed
@tswast
tswast deleted the tswast-dataframe-accessor branch March 13, 2026 21:24
@tswast

Copy link
Copy Markdown
CollaboratorAuthor

Thanks, @shuoweil ! FYI: I filed sphinx-doc/sphinx#14341 to investigate why the suppress_warnings configuration wasn't working as documented.

tswast added a commit that referenced this pull request Mar 16, 2026
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.
Librarian Version: v0.8.3
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:160860d189ff1c2f7515638478823712fa5b243e27ccc33a2728669fa1e2ed0c
<details><summary>bigframes: v2.38.0</summary>
##
[v2.38.0](v2.37.0...v2.38.0)
(2026-03-16)
### Features
* Add `bigframes.bigquery.rand()` function (#2501)
([5c43efb](5c43efb7))
* add `df.bigquery` pandas accessor (#2513)
([91b6c24](91b6c245))
* Add str, dt accessors to pd.col Expression objects (#2488)
([ce5de57](ce5de570))
* add bigquery.ml.get_insights function (#2493)
([d29a609](d29a6095))
* use EUC for AI IF, CLASSIFY, and SCORE when connection is not provided
(#2507)
([fe94910](fe94910a))
### Bug Fixes
* handle unsupported types and empty results in describe (#2506)
([2326ad6](2326ad6a))
* no longer automatically use anywidget in the `%%bqsql` magics (#2504)
([43353e2](43353e2b))
### Documentation
* Fix typo in ExperimentOptions class docstring (#2498)
([077cb2e](077cb2eb))
* add notebooks to user guide page (#2505)
([5cf3788](5cf37888))
</details>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigqueryIssues related to the googleapis/python-bigquery-dataframes API.size: lPull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@tswast@shuoweil@shobsi