Skip to content

Instantly share code, notes, and snippets.

View springcoil's full-sized avatar

Peadar Coyle springcoil

View GitHub Profile
@springcoil
springcoil / assert_frames_equal.ipynb
Created October 5, 2015 15:44 — forked from jiffyclub/assert_frames_equal.ipynb
Example of a function to compare two DataFrames independent of row/column ordering and with handling of null values.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@springcoil
springcoil / FremontBridge.ipynb
Created October 20, 2015 20:53 — forked from jakevdp/FremontBridge.ipynb
Fremont Bike Counts 2015
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file has been truncated, but you can view the full file.
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Reproducibility from the start"
]
},
{
@springcoil
springcoil / ETL_python.md
Last active October 26, 2015 18:42
What data pipelines are there in python?

I want to do ETL and I want to do it in python. What tools do I have access to?

@springcoil
springcoil / numba_test.py
Created October 26, 2015 17:07 — forked from jhemann/numba_test.py
Testing numba's autojit decorator on simple code for matrix factorization.
# -*- coding: utf-8 -*-
#!/usr/bin/python
#
# Modified example of Albert Au Yeung's on matrix factorization:
# http://www.quuxlabs.com/blog/2010/09/matrix-factorization-a-simple-tutorial-and-implementation-in-python/#source-code
import numpy as np
from numba.decorators import autojit, jit
@springcoil
springcoil / conversion.ipynb
Last active November 14, 2015 13:17
Conversion PyMC3
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@springcoil
springcoil / probineq.ipynb
Created November 9, 2015 17:04
A short article on probability inequalities
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@springcoil
springcoil / numpy_matrix_fun.ipynb
Created November 16, 2015 14:43
Some NumPy fun with the new operators
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@springcoil
springcoil / met_office_api_call.py
Last active January 22, 2021 12:48
A simple Python script to extract data from the Met Office DataPoint API
import urllib.request
import json
URL = ('http://datapoint.metoffice.gov.uk/public/data/val/wxfcs/all/json/352817'
+ '?res=3hourly&key=*api_key*')
class Manager(object):
def __init__(self, api_key=""):
self.api_key = api_key
@springcoil
springcoil / NLP_Inside_Airbnb.ipynb
Created December 1, 2015 12:26
Using data from the Paris version of Airbnb I hacked together a little Topic Model in Scikitlearn
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.