Skip to content

Instantly share code, notes, and snippets.

View phobson's full-sized avatar
⛏️

Paul Hobson phobson

⛏️
View GitHub Profile
@phobson
phobson / unit_conversion_advanced.ipynb
Last active December 16, 2015 19:29
More advanced unit conversion with pandas. View it here: http://nbviewer.ipython.org/5485277
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / figtex.py
Last active December 16, 2015 21:58
can't get the math/tick labels right.
if 1:
from matplotlib import rc, font_manager
import numpy as np
import matplotlib.pyplot as plt
# set up the fonts
rc('font',**{'family':'sans-serif','sans-serif':['Helvetica']})
rc('text', usetex=True)
rc('mathtext', fontset='stixsans')
@phobson
phobson / ros.ipynb
Last active December 18, 2015 03:19
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / pandas.ipynb
Created June 6, 2013 18:38
Pandas Basics
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / index.html
Last active December 19, 2015 00:59
Attempting to make a status widget (DNA chart) in D3
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="http://d3js.org/d3.v3.js"></script>
<script>
// basic dimensions
var widgetsize = 100;
@phobson
phobson / selections.ipynb
Last active December 19, 2015 19:28
Brief tutorial on selecting data in with pandas
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / ProbPlot.ipynb
Last active December 21, 2015 02:49
Demo of statsmodels new ProbPlot object
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / huge_stack.ipynb
Created August 16, 2013 00:31
huge data stack with pandas
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@phobson
phobson / nsqd.ipnb
Created August 16, 2013 00:32
Reformatting NSQD
{
"metadata": {
"name": ""
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
{
"metadata": {
"name": "Groundwater Surface (New Trench)"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{