I picked Center for Policing Equity challenge on Kaggle for three reasons: I love maps and I love the idea that data scientists can significantly improve our world, in addition to improving the bottom lines of big corporates. And this is exactly the type of messy data one would get in the real world so... Continue Reading →
Adding labels to districts in GeoPandas
Once you have your districts drawn up nicely, using the polygons from your shapefile, it would be useful to be able to label them - but of course you need to be able to tell GeoPandas where to place these labels via co-ordinates or points - and in your shapefile you only have polygons which... Continue Reading →
GeoPandas – a detailed example
Dear World, Please send me more geographical data to plot so I can keep on using GeoPandas... Love from Sho't Left I can't believe how much fun this library is! So my goal was to find a way to map assessment ratings by region, showing the overall result for the region, as well as the... Continue Reading →
Which districts are my cities located in?
GeoPandas gets more and more exciting as the day wears on :). I've just discovered how ridiculously easy it is to take a set of cities and relate them to their corresponding districts, states or provinces and then plot the outcomes. Fanfare for... the marvellous GeoPandas spatial join! Here's a quick how-to guide to setting... Continue Reading →