Code snippets I have written to analyze top crash locations (intersections and segments) in the TMACOG Planning area.
The code in 'analysis.py' is the basis for a custom script tool in ArcGIS Pro (Python 3.X), and requires input of a text file of crash locations downloaded from Ohio DOT's GCAT website. You will also need to supply your own layers containing buffered intersections and road segments for your study area.
There are also some batch and sql files for doing the analysis in PostGIS