Data Demos: SafeGraph Core Places Python Starter Notebook

Ryan Fox Squire
SafeGraph
Published in
2 min readAug 30, 2019
What are the most common words included in restaurant names? This is one of the questions answered in the Core Places Starter notebook.

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 Core Places* to show how you can interact with and analyze some of the columns in SafeGraph Core 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 Core 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.

______________________

Want to see a different question answered with SafeGraph data?

Please send us your ideas, feedback, bug discoveries, and suggestions to datastories@safegraph.com.

We hope this notebook provides some useful tips and inspiration for working with SafeGraph Core Places data. Go crunch some numbers!

_________________________

* To get your own sample of SafeGraph data, use code CorePlacesStarterNotebook at the SafeGraph Data Bar.

--

--

Ryan Fox Squire
SafeGraph

Neuroscientist turned Data Scientist, former DS @Lumosity, @SafeGraph. Owner Lembas Data Science.