Python

The Spatial Mismatch of Empty Homes and Housing Pressure

A spatial look at whether England’s housing crisis is really about too few homes, or too many empty rooms in the wrong places.

Retrieving custom networks from OSM using Pyrosm and translating to Pandana and NetworkX

Here I show you an easy trick to retrieve completely custom networks from OSM, using Pyrosm, without extra packages and unnecessary conversions.

Google Summer of Code 2021

Here I post about the progress, struggle and success of working on project under GSoC 2021

Calculating Walking distance in Python. Networkx vs Pandana.

This post will show you how you can calculate walking distances along OSM road network in matter of miliseconds.

Distribution of Children homes in Czech Republic

Extracting data from XML and geocoding adresses and creating maps

Global Food Hazard Network

An investigation into the identification network of global food hazards.

Application of XGBoost regression for Spatial Interaction of Urban flow

Introduction This notebook provides a simple example of the application of XGBoost Spatial Interaction model in python. For the purposes of this tutorial I will expect you to have some knowledge of Spatial Interaction Models and their purpose as well as some python skills. Yet, if you want to refresh a little or wish to learn, here is a list of relevant sources. Watch Maarten Vanhoof talking about what are the spatial Interaction Models and how they can be used here (6 min) Have a look at a list of some relevant literature in different fields here Look at the example of Spatial Interaction Model application in R from Adam Dennett Part1 and Part2 Look at how you can apply the the same method in python with SpInt package So what is the XGBoost?

Sensitivity analysis

Can we safely change a value of variable without casing harm? How is it going to affect the model results?

Comparing the graph structures of the patients flow

# we will first import all necessary libraries import pandas as pd import os import numpy as np import glob from datetime import datetime import geopandas as gpd import matplotlib.pyplot as plt import seaborn as sns import plotly.express as px from shapely.geometry import Point, LineString #from mpl_toolkits.basemap import Basemap import osmnx as ox import networkx as nx import matplotlib as mpl from networkx.algorithms import bipartite as bi import statsmodels.api as sm from scipy import stats from statsmodels.

Inter-National Migration; Part 2 - Calculating Distances

Do you have an Origin-Destination data, you want to crack on with Spatial Interaction Models, but you dont know the distances between Origins and destinations? This post will show you how to calculate them. You're welcomed.