Skip to content

Instantly share code, notes, and snippets.

Avatar

Jan Florjanczyk janmtl

View GitHub Profile
@janmtl
janmtl / master.yaml
Created Nov 23, 2016
Master configuration file for eyemotion experiments
View master.yaml
# 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"
View dfgridplot.py
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:
You can’t perform that action at this time.