Google launches BigQuery Data Frames
How Google combines BigQuery API and Python

Google just announced BigQuery DataFrames — the feature is now in preview. BigQuery DataFrames is a Python API that you can use to analyze data and perform machine learning tasks in BigQuery[1].
BigQuery DataFrames combines Data Analysis and Data Science capabilities by giving you the following options[1]:
bigframes.pandasimplements a DataFrame API (with partial Pandas compatibility) on top of BigQuery.bigframes.mlimplements a Python API for BigQuery ML (with partial scikit-learn compatibility).
DataFrames is an open-source package that you can run pip install --upgrade bigframes to install the latest version — here a small blue print on how to use it[2]:
import bigframes.pandas as bpd
bpd.options.bigquery.project = your_gcp_project_id
df1 = bpd.read_gbq("project.dataset.table")
df2 = bpd.read_gbq("SELECT a, b, c, FROM `project.dataset.table`")So this is again quite good news if you are working with Google Cloud and BigQuery in the enterprise but also want to do more with Python and run Data Science and Machine Learning task without any more unnecessary interfaces. Alternatively, Google also offers BigQuery ML, an alternative for ML via SQL. If you want to get started with BigQuery DataFrames Google also provides a BigQuery DataFrames quickstart[2].
So as I said a really very useful new feature from Google for its flagship BigQuery — which this week was also equipped with other interesting new features — one of them BigQuery Studio — read more in the linked article below.
Sources and Further Readings
[1] Google, BigQuery release notes (2023)
[2] Google, BigQuery DataFrames (2023)





