When you need to deal with point data, you will likely be interested in the spatial patterns they form. For that, you can use point pattern analysis techniques. This session will walk you through some basic ways of approaching the analysis based primarily on geometries and their locations rather than variables associated with them.
import contextilyimport geopandas as gpdimport matplotlib.pyplot as pltimport numpy as npimport pandas as pdimport pointpatsimport seaborn as snsfrom matplotlib import patchesfrom sklearn import cluster
In this session, you will be using data on pedestrian accidents in Brno that happened since 2010. Every accident is marked with point geometry and assigned a range of relevant variables you are free to explore by yourself. The dataset is released by Brno municipality under CC-BY 4.0 license. It has been preprocessed for the purpose of this course. If you want to see how the table was created, a notebook is available here.
As always, you can read data from a file posted online, so you do not need to download any dataset: