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: Support len() on Groupby objects#2183

Merged
TrevorBergeron merged 2 commits into
maingoogleapis/python-bigquery-dataframes:mainfrom
groupby_lengoogleapis/python-bigquery-dataframes:groupby_lenCopy head branch name to clipboard
Oct 22, 2025
Merged

feat: Support len() on Groupby objects#2183
TrevorBergeron merged 2 commits into
maingoogleapis/python-bigquery-dataframes:mainfrom
groupby_lengoogleapis/python-bigquery-dataframes:groupby_lenCopy 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: s Pull request size is small. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Oct 20, 2025
@TrevorBergeron TrevorBergeron marked this pull request as ready for review October 20, 2025 23:50
@TrevorBergeron TrevorBergeron requested review from a team and sycai October 20, 2025 23:50
col_names = ["int64_too", "float64_col", "int64_col", "bool_col", "string_col"]
bf_result = len(scalars_df_index[col_names].groupby("bool_col"))
pd_result = len(scalars_pandas_df_index[col_names].groupby("bool_col"))
assert bf_result == pd_result

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.

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

@TrevorBergeron TrevorBergeron requested a review from sycai October 22, 2025 21:43
@TrevorBergeron TrevorBergeron merged commit 4191821 into main Oct 22, 2025
20 of 25 checks passed
@TrevorBergeron TrevorBergeron deleted the groupby_len branch October 22, 2025 22:28
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: s Pull request size is small.

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.