Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

TrevorBergeron
Copy link
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 the size: l Pull request size is large. label Sep 9, 2025
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. label Sep 9, 2025
@TrevorBergeron TrevorBergeron marked this pull request as ready for review September 10, 2025 00:33
@TrevorBergeron TrevorBergeron requested review from a team as code owners September 10, 2025 00:33

@functools.cache
def _arrow_column(self):
# Conservatively downloads the whole underlying dataframe
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we have a TODO / issue to collect data regarding how common it is to get one column vs many?

return self._dataframe._arrow_dataframe().get_column(self._pos)

def size(self) -> int:
return self._arrow_column().size()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Likewise, theoretically we could calculate this without downloading any data. I think it'd be worth tracking an evaluation whether this should be optimized.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Love the new version of this, thanks!

@tswast tswast added the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 15, 2025
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Sep 15, 2025
@tswast tswast enabled auto-merge (squash) September 15, 2025 17:24
@tswast tswast merged commit 3b46a0d into main Sep 15, 2025
18 of 25 checks passed
@tswast tswast deleted the interchange branch September 15, 2025 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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