This lab demonstrates how to group geospatial data based on their geographic attributes in BigQuery GIS using Python and Jupyter notebooks. The lab uses spatial joins to combine information from two of Google’s public datasets – the zip codes table and the Chicago crimes table – to count the number of crimes in each zip code of Chicago by year. In addition, the lab uses the geopandas
package in Python to create a choropleth map showing crime hot spots in Chicago.
Upon completion of this lab, you will be able to:
GEOGRAPHY
datageopandas
This lab is intended for:
You should possess:
GEOGRAPHY
datatypeAugust 20th, 2025 - Resvoled issue connecting to the lab's notebook
June 24th, 2025 - Updated GCP VM instance image
May 27th, 2025 - Migrated lab environment, updated lab permissions, and cleared Jupyter Notebook outputs
August 7th, 2024 - Added password protection to notebook