Skip to content

Instantly share code, notes, and snippets.

View emunsing's full-sized avatar

Eric Munsing emunsing

View GitHub Profile
x = np.arange(0, 12.1, 0.1)
y = range(0,10)
activate_threshold = 1.0
deactivate_threshold = -1.0
data = pd.DataFrame({k: (np.sin(x+k) + 0.5 * np.sin(10*x+k)) for k in y})
activation = (data > activate_threshold).astype('float').diff()
activation.iloc[0,:] = (data.iloc[0,:] > activate_threshold).astype('float')
activation = activation.replace(-1, 0)
@emunsing
emunsing / _.md
Created July 14, 2014 21:55
Crossfilter Intro
@emunsing
emunsing / _.md
Created July 14, 2014 21:29
Tributary inlet
@emunsing
emunsing / _.md
Created July 14, 2014 19:03
Clickable Line