bigquery-bigframes
Skill0 starsChanged 4 months agoApache-2.0View on GitHub
Generates Python code using BigQuery DataFrames (BigFrames), the pandas/scikit-learn-style API over BigQuery. Use when writing BigFrames code or doing pandas-style dataframe/ML work against BigQuery (e.g. in a notebook). Don't use for SQL-first workflows or the google-cloud-bigquery client library — use bigquery-basics.
5 other projects use a version of this, 5 of them edited.
Adopted by
Most recently taken up by
- deenojo/skillsedited, first seen Nov 29, 2026
- oivanfelipe/claude-skillsedited, first seen Nov 8, 2026
- olaitanojo/skillsedited, first seen Oct 17, 2026
- google/skillsedited, first seen Sep 29, 2026
- GoogleCloudPlatform/data-agent-kit-pluginedited, first seen Jun 11, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 5
- google/skills★ 25k87% same
- GoogleCloudPlatform/data-agent-kit-plugin★ 25135% same
- deenojo/skills★ 199% same
- olaitanojo/skills★ 199% same
- oivanfelipe/claude-skills★ 099% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository78 other files it gives its agents.
- a11y-debuggingSkill
- accidental-data-loss-preventionSkill
- agy-customizationsSkill
- alphafold-database-fetch-and-analyzeSkill
- alphagenome-single-variant-analysisSkill
- antigravity-guideSkill
- bigquery-ai-mlSkill
- bigquery-data-transfer-serviceSkill
- bigquery-graphSkill
- bigquery-sqlSkill
- building-data-appsSkill
- chembl-databaseSkill
- chrome-devtoolsSkill
- chrome-extensionsSkill
- clinical-trials-databaseSkill
- clinvar-databaseSkill
- credentialsSkill
- data-autocleaningSkill
- dataform-bigquerySkill
- dbsnp-databaseSkill
- dbt-bigquerySkill
- debug-optimize-lcpSkill
- discovering-gcp-data-assetsSkill
- document-validatorSkill
- embl-ebi-olsSkill
- encode-ccres-databaseSkill
- enforcing-resource-attributionSkill
- ensembl-databaseSkill
- federate-lakehouse-catalogSkill
- foldseek-structural-searchSkill
- gcloud-auth-verificationSkill
- gcp-composer-troubleshootingSkill
- gcp-dataflowSkill
- gcp-data-pipelinesSkill
- gcp-managed-airflow-migrationsSkill
- gcp-pipeline-orchestrationSkill
- gcp-pipeline-resource-provisioningSkill
- gcp-sparkSkill
- gcs-security-assessmentSkill
- gnomad-databaseSkill
- google-antigravity-sdkSkill
- gtex-databaseSkill
- human-protein-atlas-databaseSkill
- interpro-databaseSkill
- jaspar-databaseSkill
- link-checkSkill
- literature-search-arxivSkill
- literature-search-biorxivSkill
- literature-search-europepmcSkill
- literature-search-openalexSkill
- managing-python-dependenciesSkill
- memory-leak-debuggingSkill
- ml-best-practicesSkill
- modern-web-guidanceSkill
- ncbi-sequence-fetchSkill
- notebook-guidanceSkill
- openfda-databaseSkill
- opentargets-databaseSkill
- pdb-databaseSkill
- permissioned-githubSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. 1 is common, 0 are distinctive, and 10 are very specific to this project.
1
Common
Most of the 5 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 20
Use
peek()for data preview: Use peek(n) to preview data instead of head(n). - Very specific: line 29
Prefer Dataframe API over SQL queries: Do not write raw SQL queries via read_gbq() if a DataFrame/Series method achieves the same result, …
- Very specific: line 33
Use built-in accessors (e.g., df.col.str.*, df.col.dt.*) instead of remote User Defined Functions (UDFs).
- Very specific: line 36
Do not use lambdas with Series.map() or DataFrame.apply().
- Very specific: line 46
Schema Verification: Do not assume the schema of intermediate outputs.
- Very specific: line 56
Use
bigframes.bigquery.mlpackage: Do not use Scikit-learn or other ML libraries with BigQuery DataFrames. - Very specific: line 74
Legacy Imports: When legacy BigFrames ML is requested, import tools and classes from bigframes.ml instead of bigframes.bigquery.ml.
- Very specific: line 79
No
random_state: Do not pass a random_state argument when instantiating BigFrames ML models, as this parameter is not supported in the … - Very specific: line 82
Automatic Scaling: Do not use OneHotEncoder or StandardScaler unless explicitly requested, as scaling is handled automatically.
- Very specific: line 84
Hyperparameter Tuning: Write custom loops for hyperparameter tuning, as BigFrames lacks GridSearchCV or RandomizedSearchCV.
- Common: line 89
Ensure the prediction horizon is less than or equal to the training horizon.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
BigFrames (BigQuery DataFrame) basics
BigFrames is a Python library that lets you take advantage of BigQuery data processing by using familiar Python APIs.
Dataframe API best practices
- Stay in the Cloud: Perform data cleaning, transformation, and analysis via BigFrames methods to leverage BigQuery's scale rather than downloading data.
- Prefer partial ordering mode: Enable partial ordering mode right after
importing BigFrames. This speeds up data processing significantly by relaxing
row-sequence constraints.
import bigframes.pandas as bpd bpd.options.bigquery.ordering_mode = 'partial' - Use
peek()for data preview: Usepeek(n)to preview data instead ofhead(n).peek(n)randomly samplesnrows and is significantly faster.head(n)returns rows in strict order and fails inpartialordering mode unless the DataFrame has been explicitly sorted. - Avoid materializing data locally: Methods like
to_pandas()download all data to client memory, bypassing BigQuery’s distributed computation and risking Out of Memory (OOM) errors. Do not materialize data locally unless:- The dataset is small enough to fit safely in memory.
- An error message explicitly requires local materialization.
- Prefer Dataframe API over SQL queries: Do not write raw SQL queries via
read_gbq()if a DataFrame/Series method achieves the same result, as it breaks the Pandas abstraction and prevents lazy query execution. - Accessors over UDFs/Lambdas:
- Use built-in accessors (e.g.,
df.col.str.*,df.col.dt.*) instead of remote User Defined Functions (UDFs). UDFs require extra resources and time to deploy. - Do not use lambdas with
Series.map()orDataFrame.apply(). These methods do not accept functions withoutudforremote_functiondecorators.
# Avoid: df["upper"] = df["name"].map(lambda x: x.upper()) # Prefer: df["upper"] = df["name"].str.upper() - Use built-in accessors (e.g.,
- Schema Verification: Do not assume the schema of intermediate outputs.
Proactively verify schemas using
.dtypesand inspect sample records usingdisplay()with.peek(). - Visualization: Plot directly from the BigFrames DataFrame/Series when
possible. BigFrames is compatible with Matplotlib and Seaborn. If direct
plotting fails, use the
.plotaccessor. If the dataset is too large to plot, aggregate or sample the data before calling.to_pandas()to plot locally.
Machine Learning
- Use
bigframes.bigquery.mlpackage: Do not use Scikit-learn or other ML libraries with BigQuery DataFrames. Standard Scikit-learn models require bringing data into local client memory, whereasbigframes.bigquery.mldelegates training directly to BigQuery's scalable ML engine. Import functions frombigframes.bigquery.ml.
Reference Directory
- Linear Regression: Train a linear regression model to predict numerical values.
- Logistic Regression: Train a logistic regression model to predict boolean values.
BigFrames ML (Legacy)
The BigFrames ML package (bigframes.ml) is a legacy package that mimics the
scikit-learn API but is no longer recommended for new projects. Only use this
package if the user explicitly requests BigFrames ML.
- Legacy Imports: When legacy BigFrames ML is requested, import tools and
classes from
bigframes.mlinstead ofbigframes.bigquery.ml. - DataFrame Return on Prediction: Unlike Scikit-learn, BigFrames'
predict()method always returns a DataFrame containing both predictions and features, rather than a single series of predictions. - No
random_state: Do not pass arandom_stateargument when instantiating BigFrames ML models, as this parameter is not supported in the BigFrames ML package. - Automatic Scaling: Do not use
OneHotEncoderorStandardScalerunless explicitly requested, as scaling is handled automatically. - Hyperparameter Tuning: Write custom loops for hyperparameter tuning, as
BigFrames lacks
GridSearchCVorRandomizedSearchCV. - ARIMA Plus (Forecasting):
- Import from
bigframes.ml.forecasting. - Sort data chronologically and split around a timepoint before training.
- Ensure the prediction horizon is less than or equal to the training horizon.
- Import from
- PCA: BigFrames' PCA class lacks a
transform()method. Usepredict()instead. - Model Persistence: To persist a model, use
model.to_gbq(). To load a persisted model, usebpd.read_gbq_model().
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

