Spatial Feature Engineering
As we kick off this chapter, it’s helpful for us to recall the data science pipeline and identify where we are within it at this stage of the book. Take a look at Figure 7.1, the data science pipeline.
Figure 7.1 – Data science pipeline
In Chapter 5, Exploratory Data Visualization, and Chapter 6, Hypothesis Testing and Spatial Randomness, you focused on exploring some datasets and testing for spatial relationships. Recall that in the New York Airbnb dataset, you identified that there was spatial autocorrelation present at both a global and local level. In this chapter, you’ll be focused on the part of the data science pipeline that we call processing, as highlighted in red in Figure 7.1. Other texts may refer to this step in the data science pipeline as data engineering or feature engineering. Within this step of the pipeline, your focus is on manipulating and transforming raw data into features that are...