From 2434a518ea0fbd7f8cf648d8b1618875bdc15631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Swe=C3=B1a=20=28Swast=29?= Date: Thu, 12 Jun 2025 10:30:48 -0500 Subject: [PATCH 1/2] docs: rearrange README.rst to include a short code sample Towards internal issue 424443170 --- README.rst | 72 +++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 50 insertions(+), 22 deletions(-) diff --git a/README.rst b/README.rst index 7f487b9077..267075a860 100644 --- a/README.rst +++ b/README.rst @@ -1,16 +1,60 @@ -BigQuery DataFrames -=================== +BigQuery DataFrames (bigframes) +=============================== |GA| |pypi| |versions| -BigQuery DataFrames provides a Pythonic DataFrame and machine learning (ML) API -powered by the BigQuery engine. +BigQuery DataFrames (also known as bigframes) provides a Pythonic DataFrame +and machine learning (ML) API powered by the BigQuery engine. * ``bigframes.pandas`` provides a pandas-compatible API for analytics. * ``bigframes.ml`` provides a scikit-learn-like API for ML. -BigQuery DataFrames is an open-source package. You can run -``pip install --upgrade bigframes`` to install the latest version. +BigQuery DataFrames is an open-source package. + +**Version 2.0 introduces breaking changes for improved security and performance. See below for details.** + +Getting started with BigQuery DataFrames +---------------------------------------- + +The easiest way to get started is to try the +`BigFrames quickstart `_ +in a `notebook in BigQuery Studio `_. + +To use BigFrames in your local development environment, + +1. Run ``pip install --upgrade bigframes`` to install the latest version. + +2. Setup `Application default credentials `_ + for your local development environment enviroment. + +3. Create a `GCP project with the BigQuery API enabled `_. + +4. Use the ``bigframes`` package to query data. + +.. code-block:: python + + import bigframes.pandas as bpd + + bpd.options.bigquery.project = your_gcp_project_id + 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() + ) + + +Documentation +------------- + +To learn more about BigQuery DataFrames, visit these pages + +* `Introduction to BigQuery DataFrames (bigframes) `_ +* `Sample notebooks `_ +* `API reference `_ +* `Source code (GitHub) `_ ⚠️ Warning: Breaking Changes in BigQuery DataFrames v2.0 -------------------------------------------------------- @@ -44,22 +88,6 @@ To learn about these changes and how to migrate to version 2.0, see the .. |versions| image:: https://img.shields.io/pypi/pyversions/bigframes.svg :target: https://pypi.org/project/bigframes/ -Documentation -------------- - -* `BigQuery DataFrames source code (GitHub) `_ -* `BigQuery DataFrames sample notebooks `_ -* `BigQuery DataFrames API reference `_ -* `BigQuery DataFrames supported pandas APIs `_ - - -Getting started with BigQuery DataFrames ----------------------------------------- -Read `Introduction to BigQuery DataFrames `_ -and try the `BigQuery DataFrames quickstart `_ -to get up and running in just a few minutes. - - License ------- From 00431668c81dda454431dae4c2f3e9ac6c73e797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Swe=C3=B1a=20=28Swast=29?= Date: Thu, 12 Jun 2025 14:23:49 -0500 Subject: [PATCH 2/2] change to BigFrames --- README.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index 267075a860..9288f2e6a5 100644 --- a/README.rst +++ b/README.rst @@ -1,9 +1,9 @@ -BigQuery DataFrames (bigframes) +BigQuery DataFrames (BigFrames) =============================== |GA| |pypi| |versions| -BigQuery DataFrames (also known as bigframes) provides a Pythonic DataFrame +BigQuery DataFrames (also known as BigFrames) provides a Pythonic DataFrame and machine learning (ML) API powered by the BigQuery engine. * ``bigframes.pandas`` provides a pandas-compatible API for analytics. @@ -51,7 +51,7 @@ Documentation To learn more about BigQuery DataFrames, visit these pages -* `Introduction to BigQuery DataFrames (bigframes) `_ +* `Introduction to BigQuery DataFrames (BigFrames) `_ * `Sample notebooks `_ * `API reference `_ * `Source code (GitHub) `_