Skip to content

Instantly share code, notes, and snippets.

@janmtl
janmtl / master.yaml
Created November 23, 2016 07:27
Master configuration file for eyemotion experiments
# Global configuration
---
data_paths:
- "/Users/yan/Dropbox/EyeMotion (1)/Data/EPRIME_TEXTS_JANFORMAT_August28"
- "/Users/yan/Dropbox/EyeMotion (1)/Data/Preprocessed/i"
- "/Users/yan/Dropbox/EyeMotion (1)/Data/Preprocessed/events"
- "/Users/yan/Dropbox/EyeMotion (1)/Data/Raw Data/EPrime"
- "/Users/yan/Dropbox/EyeMotion (1)/Data/Raw Data/OA"
- "/Users/yan/Dropbox/EyeMotion (1)/Data/Raw Data/YA"
pickle_path: "../ex/ex.p"
def dfgridplot(data, x, y, plotfn, aggfuncs,
rownames=None, colnames=None, linenames=None, **kwargs):
aggsindex = None
if rownames:
if type(rownames) is str:
rownames = list(rownames)
rows = data[rownames].drop_duplicates()
aggsindex = rownames
else: