May 2019
Beginner
170 pages
4h 9m
English
Before we start doing spatial autocorrelation, let's first map out a choropleth map for the boundaries according to the number of crimes for each polygon:
fig, ax = plt.subplots(figsize=(12,10))final_result.plot(column='CrimeCount', scheme='Quantiles', k=5, cmap='YlGnBu', legend=True, ax=ax);plt.tight_layout()ax.set_axis_off()plt.savefig('choroplethmap.png')plt.title('Crimes Choropleth Map ')plt.show()
The following choropleth map gives an overview of the crime rate:

Although our eyes can detect some high and low crime rate values from the preceding map, it is not easy to point out a pattern of clusters ...
Read now
Unlock full access