Skip to content

Instantly share code, notes, and snippets.

@lexual
lexual / gist:525d30536505b7bfec6d
Last active August 29, 2015 14:04
HTML output of changes to install docs for Pandas
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Installation &mdash; pandas 0.14.1-30-gfbf9e1e documentation</title>
### Not saying this is best benchmark, but indicative at least.
import pandas as pd
import numpy as np
from timeit import timeit
def main():
def get_setup_for_len(n, nunique_values):
setup_l = [
'import pandas as pd',
'import numpy as np',
@lexual
lexual / gist:6cca8c1aa7acb14d9292
Created May 29, 2014 15:01
Django Model Inferrer from CSV
#!/usr/bin/env python
# utility for figuring out django model from a csv with representative data.
import argparse
import math
import sys
# TODO: Figure out if DateField or DateTimeField
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.