Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on May 7, 2026. It is now read-only.

feat: Add bigframes.pandas.col with basic operators#2405

Merged
TrevorBergeron merged 8 commits into
maingoogleapis/python-bigquery-dataframes:mainfrom
pd_expressionsgoogleapis/python-bigquery-dataframes:pd_expressionsCopy head branch name to clipboard
Feb 6, 2026
Merged

feat: Add bigframes.pandas.col with basic operators#2405
TrevorBergeron merged 8 commits into
maingoogleapis/python-bigquery-dataframes:mainfrom
pd_expressionsgoogleapis/python-bigquery-dataframes:pd_expressionsCopy head branch name to clipboard

Conversation

@TrevorBergeron

Copy link
Copy Markdown
Contributor

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> 🦕

@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Jan 23, 2026
@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Feb 5, 2026
@TrevorBergeron TrevorBergeron marked this pull request as ready for review February 5, 2026 01:24
@TrevorBergeron TrevorBergeron requested review from a team and tswast February 5, 2026 01:24
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. and removed size: l Pull request size is large. labels Feb 5, 2026
@TrevorBergeron TrevorBergeron requested review from sycai and removed request for tswast February 5, 2026 18:27
"new_col_1": 4 - pd.col("int64_col"), # type: ignore
"new_col_2": pd.col("int64_col") / (pd.col("float64_col") * 0.5), # type: ignore
}
df = scalars_df.assign(**bf_kwargs)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style nit: an empty line above to separate "arrange" and "act" block

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

Comment thread bigframes/core/col.py Outdated
import bigframes.operations as bf_ops


# Not to be confused with internal Expressions class

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

... confused with internal Expression class

=>

... confused with the Expression class under bigframes.core

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

assert_frame_equal(bf_result, pd_result)


def test_assign_using_pd_col(scalars_dfs):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non-rhetorical question: what's your thought on providing full test coverage for all the operators you have introduced in this change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests added

@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: m Pull request size is medium. labels Feb 6, 2026
@TrevorBergeron TrevorBergeron requested a review from sycai February 6, 2026 00:43
@TrevorBergeron TrevorBergeron merged commit 1274167 into main Feb 6, 2026
20 of 24 checks passed
@TrevorBergeron TrevorBergeron deleted the pd_expressions branch February 6, 2026 23:59
shuoweil added a commit that referenced this pull request Feb 7, 2026
PR created by the Librarian CLI to initialize a release. Merging this PR
will auto trigger a release.

Librarian Version: v0.7.0
Language Image:
us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-prod/python-librarian-generator@sha256:e7cc6823efb073a8a26e7cefdd869f12ec228abfbd2a44aa9a7eacc284023677
<details><summary>bigframes: 2.35.0</summary>

##
[2.35.0](v2.34.0...v2.35.0)
(2026-02-07)

### Features

* Add bigframes.pandas.col with basic operators (#2405)
([1274167](12741677))

* remove redundant &#34;started.&#34; messages from progress output
(#2440)
([2017cc2](2017cc2f))

* add bigframe.bigquery.load_data function (#2426)
([4b0f13b](4b0f13b2))

* Disable progress bars in Anywidget mode (#2444)
([4e2689a](4e2689a1))

* add bigquery.ai.generate_text function (#2433)
([5bd0029](5bd0029a))

* Disable progress bars in Anywidget mode to reduce notebook clutter
(#2437)
([853240d](853240da))

* Add a bigframes cell magic for ipython (#2395)
([e6de52d](e6de52de))

* add `bigframes.bigquery.ai.generate_embedding` (#2343)
([e91536c](e91536c8))

### Bug Fixes

* always display the results in the `%%bqsql` cell magics output (#2439)
([2d973b5](2d973b54))

* exlcude gcsfs 2026.2.0 (#2445)
([311de31](311de31e))

* suppress JSONDtypeWarning in Anywidget mode and clean up progress
output (#2441)
([e0d185a](e0d185ad))

### Documentation

* fix cast method shown on public docs (#2436)
([ad0f33c](ad0f33c6))

</details>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.