I hereby claim:
- I am hitch17 on github.
- I am hitch (https://keybase.io/hitch) on keybase.
- I have a public key whose fingerprint is 8C6B D25F C68C 2B5E B7E2 CF81 D308 D239 5FD4 F99A
To claim this, I am signing this object:
| # unnecessary for DictObj, but the other code uses it. | |
| import urllib2 | |
| import csv | |
| import os | |
| class DictObj ( dict ): | |
| "A wrapper for dictionaries that feel like py objects" | |
| def __getattr__(self, key): | |
| if key in self: | |
| return self[key] |
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| library(reshape) | |
| matchups <- read.csv('league-matchups.csv') # dont forget to set working directory or change the full path | |
| league.sd <- sd(matchups$team_actual_points) | |
| league.mean <- mean(matchups$team_actual_points) | |
| weeks <- max(matchups$week) | |
| team.melted <- melt(matchups, id.vars="place", measure.vars="team_actual_points") | |
| places <- cast(team.melted, place ~ variable, fun.aggregate=mean)$place |