Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jiffyclub on github.
  • I am jiffyclub (https://keybase.io/jiffyclub) on keybase.
  • I have a public key whose fingerprint is 7D8E 1620 1696 A492 8E03 8750 44EF 755F 53CA A45A

To claim this, I am signing this object:

TL;DR: SmugMug seems like the best combination of price, storage, and features.

Note: I'm only considering high storage options

SmugMug

Price: $40 / year
Storage: unlimited
Web: A
Mobile: B

@jiffyclub
jiffyclub / mpl_sheets_pandas.ipynb
Created November 11, 2014 18:26
Matplotlib stylesheets + Pandas plots
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jiffyclub
jiffyclub / gist:3880f656cc82543d2dc6
Created October 21, 2014 23:13
Bug in Series.update in Pandas 0.14.1. (Apparently fixed in most recent development version.)
In [68]: s1 = pd.Series(range(1, 11))
In [69]: s2 = pd.Series({0: 11.111111,
....: 2: 33.333333,
....: 4: 55.555556,
....: 1: 66.666667,
....: 3: 133.333333,
....: 5: 200.000000,
....: 7: 266.666667,
....: 9: 333.333333})
@jiffyclub
jiffyclub / reindex.ipynb
Created August 19, 2014 19:05
Using indexing vs. merging to broadcast and reindex a pandas Series. Setting up two tables and doing a pandas merge can often be faster.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jiffyclub
jiffyclub / patsycolumns.py
Created July 17, 2014 04:14
columns_in_formula function that parses all of the column names from a patsy formula.
from StringIO import StringIO
from tokenize import generate_tokens, NAME
import patsy
def _tokens_from_patsy(node):
"""
Yields all the individual tokens from within a patsy formula
as parsed by patsy.parse_formula.parse_formula.
@jiffyclub
jiffyclub / assert_frames_equal.ipynb
Last active October 27, 2020 17:02
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.
@jiffyclub
jiffyclub / sorted_groupby.ipynb
Last active December 22, 2017 23:38
Example of making a groupby generator for a pandas DataFrame when the groupby column is sorted.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jiffyclub
jiffyclub / concat_indexes.ipynb
Created May 8, 2014 21:49
Comparison of two ways of concatenating pandas Index objects.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jiffyclub
jiffyclub / statsmodels_comparison.ipynb
Created May 7, 2014 18:33
Comparison of performance using statsmodels.formula.api and statsmodels.api.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.