Skip to content

fix: update multimodal dataset intro colab for datasets.assemble tuple return#2954

Open
cleop-google wants to merge 1 commit into
mainfrom
multimodal-intro-assemble-dataframe
Open

fix: update multimodal dataset intro colab for datasets.assemble tuple return#2954
cleop-google wants to merge 1 commit into
mainfrom
multimodal-intro-assemble-dataframe

Conversation

@cleop-google

Copy link
Copy Markdown
Contributor

Summary

Updates the multimodal dataset intro colab for the datasets.assemble change shipped in google-cloud-aiplatform v1.159.0, where client.datasets.assemble now returns a (table_id, dataframe) tuple (with a load_dataframe parameter, default False) instead of the BigQuery URI string.

Without this, the notebook breaks against v1.159.0 (the returned tuple was being passed where a bq:// URI string was expected).

Changes

  • Assemble & inspect: table_id, assembly = client.datasets.assemble(..., load_dataframe=True)assembly.head() (was assembly_bq_uri = ...bpd.read_gbq_table(assembly_bq_uri.removeprefix("bq://")).head()).
  • Batch prediction (manual-assemble path): table_id, _ = client.datasets.assemble(...)src=f"bq://{table_id}" (the tuple's table_id drops the bq:// prefix, so it is re-added).
  • Updated the accompanying description text to say assemble returns a (table_id, dataframe) tuple.

…e return

As of google-cloud-aiplatform v1.159.0, client.datasets.assemble returns a (table_id, dataframe) tuple (with a load_dataframe parameter, default False) instead of the BigQuery URI string. Update the assemble-and-inspect cell to use load_dataframe=True and assembly.head(), and the batch-prediction manual-assemble path accordingly.
@cleop-google cleop-google requested a review from a team as a code owner July 1, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant