Skip to content

Instantly share code, notes, and snippets.

View wesm's full-sized avatar
💭
➡️ ➡️ ➡️

Wes McKinney wesm

💭
➡️ ➡️ ➡️
View GitHub Profile
@wesm
wesm / gist:6160217
Created August 5, 2013 22:34
A metaclass for marking test cases (including superclasses) as requiring network connection (for nosetests -A "not network" to work)
# Author: Wes McKinney
# License: MIT
from pandas.util.testing import network
class NetworkTests(type):
def __new__(cls, name, bases, attrs):
for k, v in attrs.iteritems():
if k.startswith('test_'):
@wesm
wesm / gist:5861474
Created June 25, 2013 19:16
pandas git stats
{
"metadata": {
"name": "GitStats"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@wesm
wesm / gist:5786965
Created June 15, 2013 04:57
StackOverflow Python Analytics 2009 to present
{
"metadata": {
"name": "StackoverflowAnalytics"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@wesm
wesm / tutorial.ipynb
Last active July 24, 2016 17:56
PyCon SG Pandas Tutorial
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wesm
wesm / gist:5695768
Created June 3, 2013 02:05
pandas test failure 2013-06-02
19:00 ~/code/pandas (master)$ nosetests pandas
...........................S.S..SSSSS.S.SSSSSSSS..SSS.S..SSSSSSF...SSSS.........................................FFF..FF....FFFFFF..FF...........................................................................................................................................................................................................................................................................................................................................................................SSSS.....................S.......................................................SSSSSSSSSS..................SS...................................................................................................................................................................................S.......................SSSSSSS.........................................S............................................S.......................................................................
@wesm
wesm / notebook.ipynb
Created May 3, 2013 17:26
SFPyData 2013-05-02 Notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wesm
wesm / gist:5207157
Created March 20, 2013 18:24
PyData-20130320
{
"metadata": {
"name": "PyDataTalk"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@wesm
wesm / gist:5041883
Created February 26, 2013 20:31
Foo
{
"metadata": {
"name": "NYCPython_FoodDB"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{
@wesm
wesm / PandasTour.ipynb
Created February 11, 2013 19:54
Pandas Tour
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"metadata": {
"name": "Untitled1"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
{