Skip to content

Instantly share code, notes, and snippets.

View peterdesmet's full-sized avatar

Peter Desmet peterdesmet

View GitHub Profile
@bartaelterman
bartaelterman / viz.ipynb
Created April 15, 2016 14:30
js viz in jupyter
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@andrewxhill
andrewxhill / torque.md
Last active September 29, 2016 11:12
Fun with Torque

Data: Denver Traffic Accidents

Go to your traffic_accidents table and let's start by creating a new visualization

Imgur

Overview of the Torque Wizard

key things

@willprice
willprice / .travis.yml
Last active August 15, 2023 17:12
How to set up TravisCI for projects that push back to github
# Ruby is our language as asciidoctor is a ruby gem.
lang: ruby
before_install:
- sudo apt-get install pandoc
- gem install asciidoctor
script:
- make
after_success:
- .travis/push.sh
env:
@bsweger
bsweger / useful_pandas_snippets.md
Last active April 19, 2024 18:04
Useful Pandas Snippets

Useful Pandas Snippets

A personal diary of DataFrame munging over the years.

Data Types and Conversion

Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)

@sckott
sckott / gbif_genus.md
Last active December 16, 2015 03:09
Getting data for a genus from GBIF.
install.packages("rgbif")
library(rgbif)

Getting all occurrences for a genus

The best way to approach this right now is to use the scientificname argument in the occurrencelist function. For example, use an asterisk "*" after "Abies", which will get you everything in the genus "Abies". Then you can clean up afterwards if you want. See below

Lets see how many records there are in the genus with lat/long data in Spain