Skip to content

Instantly share code, notes, and snippets.

We can't make this file beautiful and searchable because it's too large.
location,day_of_week,month_num,week,line_color,weekday_num,rides,stationname
"(41.722377, -87.624342)",Friday,1,1,red,4,11304.9375,95th/Dan Ryan
"(41.722377, -87.624342)",Friday,1,2,red,4,12877.3125,95th/Dan Ryan
"(41.722377, -87.624342)",Friday,1,3,red,4,12685.0,95th/Dan Ryan
"(41.722377, -87.624342)",Friday,1,4,red,4,12315.3125,95th/Dan Ryan
"(41.722377, -87.624342)",Friday,1,5,red,4,12218.6,95th/Dan Ryan
"(41.722377, -87.624342)",Friday,1,53,red,4,5366.0,95th/Dan Ryan
"(41.722377, -87.624342)",Friday,2,5,red,4,12931.0909091,95th/Dan Ryan
"(41.722377, -87.624342)",Friday,2,6,red,4,12883.4375,95th/Dan Ryan
"(41.722377, -87.624342)",Friday,2,7,red,4,13216.25,95th/Dan Ryan
`averageValues = (dim,attr) ->
reduceAddAvg = (attr) ->
(p,v) ->
++p.count
p.sum += +v[attr]
p.avg = p.sum/p.count
p
reduceRemoveAvg = (attr) ->
{
"metadata": {
"name": "",
"signature": "sha256:1b7c6bc58dae0b00aeb80a4a33ab6337f35b23893bcf8b3e3f4e19f962772377"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [