Skip to content

Instantly share code, notes, and snippets.

@benjaminmgross
benjaminmgross / README.md
Created June 1, 2014 08:12
Exploding Bar Chart

#Why

I haven't seen any visualizations of "Exploding Bar Charts" using matplotlib like the this one:

exploding_bar

So I put together some very quick code to show how it could be done

#WIP

@benjaminmgross
benjaminmgross / ff_fudgery.json
Last active August 29, 2015 14:01
Fama French Fudgery
{
"metadata": {
"name": "",
"signature": "sha256:12e3c9503b4648f28853f643f8c87ee662a50293d691268338736c4f49e808f0"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
@benjaminmgross
benjaminmgross / list_numpy_compare.py
Last active August 29, 2015 13:58
Differences between Numpy & List Comprehensions
def gen_tickers(num_tickers, num_new):
"""
This function generates `num_tickers` of random, length 3 tickers and
`num_new` random, length 3 tickers
"""
s = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
r = numpy.random.randint(1, 27, 3)
ticks = []
#create the list of tickers
for i in numpy.arange(num_tickers):