Blog home

Data Demos: SafeGraph Places Python Starter Notebook

August 27, 2019
Ryan Fox Squire

Working with SafeGraph Places Data in Python? We want you to hit the ground running.

Here is an example Google CoLab notebook pre-loaded with some data from SafeGraph Places to show how you can interact with and analyze some of the columns in SafeGraph Places.

You can open this notebook in your browser and work interactively with the data and the notebook in real time! This is an ephemeral copy that only you can see and edit. Please tinker with it!

This notebook shows you how to answer questions like:

  • How many restaurants are there in Ohio?
  • What is the ratio of quick-service to full-service restaurants in Ohio?
  • What are the most common words used in restaurant names?
  • Which cities in Ohio have the fewest restaurants per capita?
  • Which chain restaurants have the largest number of locations that are open 24–7?
  • Which chain restaurants are open the most hours / week?

And shows example analyses with many of the columns in SafeGraph Places:

  • safegraph_place_id
  • naics_code, top_category, and sub_category
  • location_name
  • brands
  • city
  • open_hours

To open an interactive ephemeral copy of the notebook, click here.

Browse the latest

Questions? Get in touch with our team of data experts.