Skip to content

Conversation

@sycai
Copy link
Contributor

@sycai sycai commented Oct 24, 2025

  • The original API is kept for backward compatibility
  • A warning will be thrown if the user tries to use df.ai accessor
  • Updated the AI forecast notebook to showcase the new usage
  • Removed the AI accessor doc from our public API doc page

I also updated the parameters to make them consistent with the SQL version:

  • renamed "data_column" -> "data_col", "timestamp_column" -> "timestamp_col" etc. to align with the SQL function naming scheme
  • made "data_col" and "timestamp_col" keyword-only params, which is consistent with the SQL function definition.
  • added "context_window", which was introduced later but not present in the aiaccessor forecast

SQL func doc reference: https://docs.cloud.google.com/bigquery/docs/reference/standard-sql/bigqueryml-syntax-ai-forecast

Fixes #454138453 🦕

@product-auto-label product-auto-label bot added the size: l Pull request size is large. label Oct 24, 2025
@review-notebook-app
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 Oct 24, 2025
@sycai sycai changed the title refactor: remove ai.forecast from AIAccessor to bbq refactor: migrate ai.forecast from AIAccessor to bbq Oct 27, 2025
@sycai sycai requested a review from tswast October 27, 2025 17:12
@sycai sycai marked this pull request as ready for review October 27, 2025 17:13
@sycai sycai requested review from a team as code owners October 27, 2025 17:13
@sycai sycai enabled auto-merge (squash) October 27, 2025 17:37
@sycai sycai merged commit 4f568b1 into main Oct 27, 2025
20 of 25 checks passed
@sycai sycai deleted the sycai_forecast_migration branch October 27, 2025 20:05
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