Skip to content

feat(bigquery-storage): add deprecation warning for to_dataframe - #18022

Open
shuoweil wants to merge 1 commit into
mainfrom
shuowei-bqs-to-dataframe-warning
Open

feat(bigquery-storage): add deprecation warning for to_dataframe#18022
shuoweil wants to merge 1 commit into
mainfrom
shuowei-bqs-to-dataframe-warning

Conversation

@shuoweil

@shuoweil shuoweil commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Following the addition of PendingDeprecationWarning to ReadRowsPage.to_arrow() in #17938, this PR adds PendingDeprecationWarning to ReadRowsPage.to_dataframe() in google-cloud-bigquery-storage.

This notifies developers to adopt direct pandas-gbq APIs (pandas_gbq.read_gbq() or pandas_gbq.pandas.read_bigquery_stream_batches()) ahead of future deprecation phases.

Fixes #< 526614511 > 🦕

@shuoweil
shuoweil requested review from sycai and tswast August 6, 2026 21:54
@shuoweil shuoweil self-assigned this Aug 6, 2026
@shuoweil
shuoweil requested review from a team as code owners August 6, 2026 21:54

@gemini-code-assist gemini-code-assist Bot left a comment

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.

Code Review

This pull request adds a PendingDeprecationWarning to the to_dataframe method in reader.py to notify users that retrieving DataFrames directly via google-cloud-bigquery-storage is deprecated, suggesting alternatives like pandas_gbq. It also adds a unit test to verify that this warning is emitted correctly. There are no review comments, so I have no feedback to provide.

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