Skip to content

Instantly share code, notes, and snippets.

@darribas
darribas / comparison.png
Last active January 5, 2022 09:46
A computational exploration of the Modifiable Areal Unit Problem
comparison.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@darribas
darribas / geoplot_viridis.ipynb
Last active March 23, 2017 16:33
`geoplot` Viridis
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.
@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 / 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 / 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 / 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 / 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 / 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.