From the course: Geospatial Data Analytics Essential Training

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Explore the administrative boundaries of the NYC neighborhoods

Explore the administrative boundaries of the NYC neighborhoods - Python Tutorial

From the course: Geospatial Data Analytics Essential Training

Explore the administrative boundaries of the NYC neighborhoods

- [Instructor] In this section, we will conduct exploratory spatial analytical steps to further understand the different properties of the neighborhoods of New York City. These steps will both provide deeper insights into the neighborhoods of New York City and help us to build up the skills to analyze larger sets of spatial units. First, we import geopandas as usual by renaming it to gpd. Then we define the filename, which you can simply copy and paste here and store under the variable name file_name. We can use this file_name combined with our GeoPandas reader function read_file to parse this data file and store it in a GeoDataFrame called gdf. Once we read the file, let's print its size by measuring the total number of rows in the GeoDataFrame and display the first 10 rows on the Code::Blocks output. Taking a quick look at the data frame, we can tell that it contains 195 different neighborhoods from New York City, each identified by their ntaname and ntacode. Then each neighborhood…

Contents