VANAUDEL ANALYTIX
Follow Us
  • Home
  • About
  • Python Blog
  • SAS Blog
  • Open Data Science
  • Consulting
  • Contact

boundaries of city of toronto neighborhoods - open data

9/7/2019

1 Comment

 
The City of Toronto has an Open Data Portal that was first founded in the fall of 2009. I decided to search through it and found a GEOJSON file containing the boundaries of City of Toronto Neighborhoods. This file contained a lot of information including the names, areas, longitude, latitude and geometry of the 150 neighborhoods in the City of Toronto. 

​FROM GEOJSON TO GEOPANDAS:
Using Python, I converted the GEOJSON file to a GEOPANDAS dataframe. The geometry column stores the boundaries or coordinates of each of the 150 neighborhoods as Polygons. I was able to generate a plot of all 150 neighborhoods. I also took it one step further and annotated each neighborhood with its corresponding name. The following is the annotated plot of the 150 neighborhoods in the City of Toronto obtained from the GEOJSON file found in Toronto's Open Data Portal.
Picture

Read More
1 Comment

    Author

    My name is Vanessa Afolabi also known as @TheSASMom. I am a Data Scientist fluent in SAS, R, Python and SQL with a passion for Machine Learning and Research.

    Archives

    September 2019

    Categories

    All

    RSS Feed

Powered by Create your own unique website with customizable templates.