bigquery-bigframes
Skill240 starsChanged 5 months agoApache-2.0View on GitHub
Generates Python code using BigQuery DataFrames (BigFrames). Use by default for any Python data task involving BigQuery, including data processing, analysis, and machine learning. Don't use for SQL-first workflows or the google-cloud-bigquery client library — use bigquery-basics.
3 other projects use a version of this, 3 of them edited.
Adopted by
Most recently taken up by
- oivanfelipe/claude-skillsedited, first seen Nov 8, 2026
- olaitanojo/skillsedited, first seen Oct 17, 2026
- google/skillsedited, first seen Sep 29, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 3
- google/skills★ 24k23% same
- olaitanojo/skills★ 122% same
- oivanfelipe/claude-skills★ 022% 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 repository39 other files it gives its agents.
- accidental-data-loss-preventionSkill
- bigquery-ai-mlSkill
- bigquery-data-transfer-serviceSkill
- bigquery-graph-authorSkill
- bigquery-graph-querySkill
- bigquery-observabilitySkill
- bigquery-optimizationSkill
- bigquery-troubleshootingSkill
- bigtable-basicsSkill
- building-data-appsSkill
- cloud-databases-onboardingSkill
- dak-setupSkill
- data-autocleaningSkill
- dataform-bigquerySkill
- dbt-bigquerySkill
- discovering-gcp-data-assetsSkill
- enforcing-resource-attributionSkill
- federate-lakehouse-catalogSkill
- gcp-composer-troubleshootingSkill
- gcp-dataflowSkill
- gcp-data-pipelinesSkill
- gcp-managed-airflow-dag-authoringSkill
- gcp-managed-airflow-migrationsSkill
- gcp-managed-airflow-recommendationsSkill
- gcp-managed-spark-upgradesSkill
- gcp-pipeline-orchestrationSkill
- gcp-pipeline-resource-provisioningSkill
- gcp-spark-observabilitySkill
- gcp-sparkSkill
- gcp-spark-troubleshootingSkill
- gcs-security-assessmentSkill
- google-cloud-storage-basicsSkill
- google-cloud-storage-bucket-architectSkill
- google-cloud-storage-fuseSkill
- managing-python-dependenciesSkill
- ml-best-practicesSkill
- notebook-guidanceSkill
- resolving-mcp-region-configsSkill
- schema-mappingSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 0 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Avoid
read_gbq()for SQL: Do not write SQL queries and execute them with read_gbq(). - Very specific: line 27
Use BigFrames ML package for Machine Learning Tasks: Do not use Scikit-learn or other ML libraries with BigFrames dataframes.
- Very specific: line 33
Prefer built-in accessors (e.g., df.col.str.*, df.col.dt.*) over remote UDFs.
- Very specific: line 36
Schema Verification: Do not assume schema of intermediate outputs.
- Very specific: line 37
Check .dtypes after loading, and use display() with .head() or .peek().
- Very specific: line 50
No
random_state: Do not pass a random_state argument when instantiating BigFrames ML models. - Very specific: line 52
Automatic Scaling: Do not use OneHotEncoder or StandardScaler unless explicitly requested (handled automatically).
“Common” is measured: kept by at least 6 in 10 of the 3 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.
Generic Coding Guidelines
- Avoid
.to_pandas(): You MUST NOT use.to_pandas()to download the entire dataset into memory. There are some exceptions:- An error message explicitly requests you to use
to_pandas() - You are going to visualize the data, and the visualization library
does not accept BigFrames Dataframe/Series instances. In this case,
reduce the amount of data you are going to download before calling
.to_pandas()
- An error message explicitly requests you to use
- Avoid
read_gbq()for SQL: Do not write SQL queries and execute them withread_gbq(). Use BigFrames Dataframe/Series methods instead. - Use BigFrames ML package for Machine Learning Tasks: Do not use
Scikit-learn or other ML libraries with BigFrames dataframes. Import your
tools/classes from
bigframes.ml. - Stay in the Cloud: Perform data cleaning, transformation, and analysis via BigFrames methods to leverage BigQuery's scale.
- Accessors over UDFs/Lambdas:
- Prefer built-in accessors (e.g.,
df.col.str.*,df.col.dt.*) over remote UDFs. - Do not use lambdas with
Series.map()orDataFrame.apply().
- Prefer built-in accessors (e.g.,
- Schema Verification: Do not assume schema of intermediate outputs.
Check
.dtypesafter loading, and usedisplay()with.head()or.peek(). - Visualization: BigFrames Dataframe mostly works directly with Matplotlib, Seaborn, and other plotting libraries. If your attempt didn't work, try using the "plot" accessor. If that didn't work either, you MUST sample or aggregate your data to make it small enough before calling "to_pandas()".
Model Development
- Unlike Scikit-learn: BigFrames'
predict()method always returns a DataFrame containing both predictions and features (not just a series of predictions). - No
random_state: Do not pass arandom_stateargument when instantiating BigFrames ML models. - Automatic Scaling: Do not use
OneHotEncoderorStandardScalerunless explicitly requested (handled automatically). - Hyperparameter Tuning: You must write custom loops (BigFrames lacks
GridSearchCVorRandomizedSearchCV). - ARIMA Plus (Forecasting):
- Import from
bigframes.ml.forecasting. - Sort data chronologically and split around a timepoint before training.
- Prediction horizon must be less than or equal to training horizon.
- Import from
- PCA: BigFrames' PCA class lacks simple
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.
Reviews can't be read right now.
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.

