Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

chore: add deferred exec code samples#439

Merged
GarrettWu merged 4 commits intomainfrom
garrettwu-defer
Mar 14, 2024
Merged

chore: add deferred exec code samples#439
GarrettWu merged 4 commits intomainfrom
garrettwu-defer

Conversation

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

@GarrettWu GarrettWu requested review from a team, ashleyxuu and jiaxunwu March 13, 2024 21:00
@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. samples Issues that are directly related to samples. labels Mar 13, 2024
>>> df = bpd.read_gbq("bigquery-public-data.ml_datasets.penguins")

>>> bpd.options.display.repr_mode = "deferred"
>>> df.head(20) # will no longer run the job
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.

How does user run it then?

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.

Line 33 tells to call to_pandas()

@GarrettWu GarrettWu merged commit 456fb32 into main Mar 14, 2024
@GarrettWu GarrettWu deleted the garrettwu-defer branch March 14, 2024 20:22
junyazhang pushed a commit that referenced this pull request Mar 15, 2024
* chore: add deferred exec code samples

* fix tests

* fix tests
junyazhang added a commit that referenced this pull request Mar 15, 2024
…type (#442)

* feat: support datetime related casting in (Series|DataFrame|Index).astype

* chore: add deferred exec code samples (#439)

* chore: add deferred exec code samples

* fix tests

* fix tests

* feat: add DataFrame.pipe() method (#421)

* addressed comments

---------

Co-authored-by: Garrett Wu <[email protected]>
Co-authored-by: TrevorBergeron <[email protected]>
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. samples Issues that are directly related to samples. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants