← All stories
● Covered by 1 source · 1 reportMedium impact

Google Cloud Expands SQL and Python Integration with %%bqsql Magic

New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Introduced %%bqsql magic for SQL integration in Jupyter notebooks
  • Supports data processing directly between SQL and Python
  • Available via open-source packages like Jupyter and pandas

New Features for Data Scientists and Engineers

Google Cloud has launched the %%bqsql IPython cell magic, allowing data professionals to integrate SQL queries seamlessly with Python code in their Jupyter notebooks. This advancement addresses the common challenge faced by data scientists and engineers of moving data between these two programming languages, enhancing their workflow efficiency.

The introduction of SQL cells in Colab Enterprise laid the groundwork for this update, which is now available to the open-source community.

Setting Up the Environment

To use the new %%bqsql feature, users need to enable the BigQuery sandbox and set up a local Python environment. This can also be done using Google Colab, which comes pre-configured with Python.

Once the environment is set, users can install necessary packages like Jupyter, bigframes, and python-calamine, and start Jupyter Lab to create their notebooks.

Practical Data Processing

Users can begin analyzing datasets, such as USDA wheat data, by downloading it into a pandas DataFrame. The use of pyarrow as a dtype_backend will allow for consistent handling of NULL values and facilitate schema mapping when transitioning from pandas to SQL. This process exemplifies a typical local data analysis workflow.

Impact on the Data Processing Community

This integration between SQL and Python could significantly improve data processing capabilities for many in the data science field. By facilitating direct access to SQL queries from Python environments, it encourages a more collaborative approach to data analysis and reduces the complexity of moving data between different languages. This update reflects the ongoing expansion of tools designed for data professionals.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~34 min · 27 stories · Oct 02

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

Google Cloud has introduced the %%bqsql IPython cell magic, enabling seamless integration of SQL and Python in data processing. This update facilitates data scientists and engineers in using SQL directly in Jupyter notebooks, enhancing productivity and collaboration across different coding environments.