- Notifications
You must be signed in to change notification settings - Fork63
BigQuery DataFrames (also known as BigFrames)
License
googleapis/python-bigquery-dataframes
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
| orphan: |
|---|
BigQuery DataFrames (also known as BigFrames) provides a Pythonic DataFrameand machine learning (ML) API powered by the BigQuery engine. It provides modulesfor many use cases, including:
- bigframes.pandasis a pandas API for analytics. Many workloads can bemigrated from pandas to bigframes by just changing a few imports.
- bigframes.mlis a scikit-learn-like API for ML.
- bigframes.bigquery.aiare a collection of powerful AI methods, powered by Gemini.
BigQuery DataFrames is anopen-source package.
The easiest way to get started is to try theBigFrames quickstartin anotebook in BigQuery Studio.
To use BigFrames in your local development environment,
- Run
pip install --upgrade bigframesto install the latest version. - SetupApplication default credentialsfor your local development environment enviroment.
- Create aGCP project with the BigQuery API enabled.
- Use the
bigframespackage to query data.
importbigframes.pandasasbpdbpd.options.bigquery.project=your_gcp_project_id# Optional in BQ Studio.bpd.options.bigquery.ordering_mode="partial"# Recommended for performance.df=bpd.read_gbq("bigquery-public-data.usa_names.usa_1910_2013")print(df.groupby("name") .agg({"number":"sum"}) .sort_values("number",ascending=False) .head(10) .to_pandas())
To learn more about BigQuery DataFrames, visit these pages
BigQuery DataFrames is distributed with theApache-2.0 license.
It also contains code derived from the following third-party packages:
For details, see thethird_partydirectory.
For further help and provide feedback, you can email us atbigframes-feedback@google.com.
About
BigQuery DataFrames (also known as BigFrames)
Topics
Resources
License
Code of conduct
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.