Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
R> wa.cd <- readOGR("cd2012.shp", layer="cd2012")
OGR data source with driver: ESRI Shapefile
Source: "cd2012.shp", layer: "cd2012"
with 10 features
It has 34 fields
R> class(wa.cd)
[1] "SpatialPolygonsDataFrame"
attr(,"package")
[1] "sp"
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
date name
2014-01-01
2014-01-02
2014-01-03 Snorting Elk
2014-01-04 Bull Wheel
2014-01-05
2014-01-06
2014-01-07
2014-01-08 Caroline Tavern
2014-01-09 Redwood
@stedy
stedy / summarize_LT.py
Created January 4, 2015 22:38
Summarize LibraryThing JSON data
import argparse
import datetime as dt
import json
import pandas as pd
import numpy as np
from ggplot import *
parser = argparse.ArgumentParser(description = """Yearly summary trends for
LibraryThing JSON data""")
parser.add_argument('json', help = "JSON file from LibraryThing")
@stedy
stedy / LEGO.csv
Created August 30, 2014 23:26
Analysis of LEGO prices in 2014 & 1989
id pieces price collection
75059 3296 299.99 Star Wars
10221 3152 399.99 Star Wars
75037 178 14.99 Star Wars
75035 99 12.99 Star Wars
10188 3803 399.99 Star Wars
75036 83 12.99 Star Wars
75034 100 12.99 Star Wars
10240 1559 199.99 Star Wars
10225 2127 179.99 Star Wars