## Building Bridges using Python

In a previous post I used NetworkX functions to convert a shapefile into a graph network for use in spatial smoothing. But there is a problem! Rivers and seas were un-crossable voids. I don’t really want to swim across the rivers, particularly the Thames, but luckily for us there are bridges across rivers and ferries …

## Spatial Smoothing using Network Analysis – Implementation

My previous post, network analysis and spatial smoothing, I investigated how to use NetworkX functions in python for potential use in spatial smoothing. In this post I’ll actually go over an example of the code being used to smooth average house price data across London. The code for this investigation is here The area being …

## Network Analysis and Spatial Smoothing

In my last post I introduced the concept of using network analysis for use on Road data. In another post I looked at using pygeos to spatially smooth data. This time I’ll be combining network analysis and spatial smoothing. The Problem Using distance related spatial smoothing, whether this is using kernel density or count/average within …

## Network Analysis in Python

Maps are all well and good, but do you know what’s better. Graphs! I’m not talking about pie charts or even bar charts I mean the ones with edges and vertices (also known as networks). In this post, and this code, I’m going to convert a geodataframe of A-roads around St Pauls into a graph …

## How far is it to the nearest train station?

In a previous post I collected lots of different public data sources, imported them into python, made geopandas dataframes and made some simple maps. I now want to start some calculations. I’ve got some questions I want to answer. The first being For any postcode in the UK, how far is it to the nearest …

## Creating punctuation worksheet using python

I wanted to make some simple grammar worksheets based on an existing book, rather than making some up myself. So rather than just opening a book and typing them out I thought I’d use Python. This way you can personalise the worksheet to a book the kids like and has language at their level. To …