bigquery-bigframes

Generates Python code using BigQuery DataFrames for pandas-style analysis and ML on BigQuery.

Updated Aug 26, 2026
One-click install
npx skills add https://github.com/Lathika-laa/Recipe_Box --skill bigquery-bigframes-lathika-laa
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: bigquery-bigframes
Source: https://github.com/Lathika-laa/Recipe_Box/tree/main/.github/.gemini/skills/bigquery-bigframes
Command: npx skills add https://github.com/Lathika-laa/Recipe_Box --skill bigquery-bigframes-lathika-laa

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Writing correct BigFrames (BigQuery DataFrames) code requires knowing pandas-style APIs that execute remotely on BigQuery, and common mistakes like materializing data locally or using scikit-learn cause OOM errors and slow queries. This Skill guides code generation so dataframe and ML work stays in BigQuery's distributed engine. ## Core Features & Use Cases - Dataframe API Best Practices: Enforces partial ordering mode, peek() previews, accessor-based transformations, and avoidance of to_pandas() and raw SQL via read_gbq(). - BigQuery ML Integration: Generates model training, evaluation, and prediction code using bigframes.bigquery.ml functions like create_model, evaluate, and predict. - Use Case: A data scientist in a notebook wants to train a logistic regression model on the BigQuery penguins dataset without downloading data; the Skill produces code that creates the model, evaluates it, and runs predictions entirely in BigQuery. ## Quick Start Write BigFrames Python code that loads the penguins dataset from BigQuery and trains a linear regression model to predict penguin body mass.

Frequently Asked Questions about bigquery-bigframes

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I train a machine learning model with BigQuery DataFrames?▼

Use the bigframes.bigquery.ml package, which delegates training to BigQuery's ML engine. Call bbq.ml.create_model with a model type like LINEAR_REG or LOGISTIC_REG, passing training data with a renamed label column, then use bbq.ml.evaluate and bbq.ml.predict.

BigFrames vs google-cloud-bigquery client library: which should I use?▼

Use BigFrames for pandas-style dataframe and ML work against BigQuery, where operations translate to distributed queries. Use the google-cloud-bigquery client library for SQL-first workflows, job management, and administrative tasks instead.

Why does head() fail in BigFrames partial ordering mode?▼

head(n) requires strict row ordering, which partial ordering mode relaxes for performance. Use peek(n) instead, which randomly samples n rows and runs significantly faster without ordering constraints.

Can I use scikit-learn with BigQuery DataFrames?▼

No, scikit-learn requires pulling data into local client memory, risking OOM errors. Import ML tools from bigframes.bigquery.ml so training executes on BigQuery's scalable engine directly.

When should I avoid calling to_pandas() in BigFrames?▼

Avoid to_pandas() for large datasets because it downloads all data to client memory, bypassing distributed computation. Only use it when the data fits safely in memory, an error explicitly requires it, or after aggregating for local plotting.