Skip to content

Instantly share code, notes, and snippets.

@darribas
darribas / mpex.py
Created August 7, 2013 08:01
Example for testing PySAL issue #314 relating ROD dicts and multiprocessing ... Running this file before PR #315 will trigger a nasty error in multiprocessing. Running in on a later version of PySAL's trunk will just work Links ------- Issue #314: https://github.com/pysal/pysal/issues/314 PR #315: https://github.com/pysal/pysal/pull/315
'''
Example for testing PySAL issue #314 relating ROD dicts and multiprocessing
...
Running this file before PR #315 will trigger a nasty error in
multiprocessing. Running in on a later version of PySAL's trunk will just work
'''
import time
import pysal as ps
@darribas
darribas / howto_setup_landslide.md
Created December 11, 2012 09:54
How to setup `landslide` to work with LaTeX rendering

How to setup landslide to work with LaTeX rendering

This short howto is intended to be a mental note for myself so I don't have to spend all the wasted hours that took me to figure out howto get landslide up and running and beautifully displaying LaTeX on the slides. If you find it useful, good for you ;-)


Disclaimer

@darribas
darribas / .gitignore
Last active April 26, 2016 05:44
London boroughs, one by one
*.swp
*~
.ipynb_checkpoints/
@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 / 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 / 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 / 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 / pandas_dask_test.ipynb
Created July 27, 2015 17:04
Quick comparison between `pandas` and `dask` groupby functionality.
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.