Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add experimental series.blob.display() function #1232

Merged
merged 2 commits into from
Dec 20, 2024

Conversation

GarrettWu
Copy link
Contributor

Verified test env screen/38WRuQPuvkYP8PN

@GarrettWu GarrettWu requested review from a team as code owners December 19, 2024 00:42
@product-auto-label product-auto-label bot added the size: m Pull request size is medium. label Dec 19, 2024
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. label Dec 19, 2024
@GarrettWu GarrettWu assigned GarrettWu and unassigned junyazhang Dec 19, 2024
@GarrettWu GarrettWu added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 19, 2024
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 19, 2024
@GarrettWu GarrettWu added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 19, 2024
@bigframes-bot bigframes-bot removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Dec 19, 2024
@GarrettWu GarrettWu enabled auto-merge (squash) December 20, 2024 01:21
import bigframes.bigquery as bbq

return bbq.json_extract(details_json, "$.gcs_metadata")

def display(self, n: int = 3):
Copy link
Contributor

Choose a reason for hiding this comment

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

can we call it peek() to have some semantic resemblance to the dataframe/series peek()?

"""
import bigframes.bigquery as bbq

s = bigframes.series.Series(self._block).head(n)
Copy link
Contributor

Choose a reason for hiding this comment

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

relying on peek instead of head would make it relevant in partial ordering mode as well

@GarrettWu GarrettWu merged commit c6ef52c into main Dec 20, 2024
20 of 21 checks passed
@GarrettWu GarrettWu deleted the garrettwu-blobimpl branch December 20, 2024 02:12
shuoweil added a commit that referenced this pull request Dec 23, 2024
* docs: add linear model example

* chore: add experimental series.blob.display() function (#1232)

* add an extra setting to set display prgress bar to None

* docs: add KMeans example (#1234)

* docs: add KMeans example

* fix test

* skip non deterministic examples

* docs: add examples for ml PCA and SimpleImputer (#1236)

* docs: add examples for ml PCA and SimpleImputer

* fix

* fix

* fix doctest bug

* add extra lines to fix docs bug

* fix docstring bug

* remove an extra line

---------

Co-authored-by: Shuowei Li <[email protected]>
Co-authored-by: Garrett Wu <[email protected]>
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: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants