Skip to content

Instantly share code, notes, and snippets.

@darribas
darribas / houston_in_15m.ipynb
Last active December 26, 2018 18:17
Houston 15 minute walks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darribas
darribas / disparities.ipynb
Created October 30, 2018 13:45
Deprivation disparities between contiguous English areas
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darribas
darribas / networkW.ipynb
Last active June 23, 2021 03:07
Spatial Weights Matrices as bundled networks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darribas
darribas / test.geojson
Created September 26, 2018 17:46
test.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darribas
darribas / serialise_geo_feather.ipynb
Created January 26, 2018 22:21
(De-)serialise geo objects in feather
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darribas
darribas / boroughs.geojson
Last active February 19, 2018 09:30
Strava Boroughs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darribas
darribas / pt2xy2pt.ipynb
Created November 27, 2017 16:29
Conversion on `geopandas` points to XYs to points
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darribas
darribas / contextily_release0p99.md
Last active November 3, 2017 16:41
Contextily Release 0.99.0

Earlier this month, and with the great help of Chris Holdgraf and Filipe Fernandes, we pushed a new release of contextily, the Python library to pull web tiles from the internet that can be used as contextual maps.

Besides a few bug fixes, the main addition in this release is the Places API that Chris included. This is a super handy way to quickly pull down a tile for an area. Let's see a quick example!

Say you are working with a spatial dataset around the Berkley campus and you would like to add some context to your data points. All you need to do is:

import contextily as ctx
bkl = ctx.Place("UC Berkeley")
@darribas
darribas / palindromes.ipynb
Last active September 18, 2017 10:26
Finding the longest palindrome in the UK
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darribas
darribas / legendgrams.ipynb
Created May 9, 2017 16:36
Histograms as choropleth legends
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.