We will be discussing three things in this section: taxi zones, spatial joins, and the calculation of distances.
Spatial data processing
Taxi zones in New York
Analyzing and processing a taxi zone spatial data helps us achieve two objectives:
- Substitute the missing coordinates for pickup and dropoff locations with the taxi zone's centroid
- Use the taxi zone as a feature in the model
Visualization of taxi zones
We have provided the shapefile for the taxi zones in the data repository. Shapefiles can be read as (Geo)DataFrames with the Python library known as GeoPandas...