{"action":"created","issue":{"url":"https://api.github.com/repos/NathanEpstein/datakit/issues/1","labels_url":"https://api.github.com/repos/NathanEpstein/datakit/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/NathanEpstein/datakit/issues/1/comments","events_url":"https://api.github.com/repos/NathanEpstein/datakit/issues/1/events","html_url":"https://github.com/NathanEpstein/datakit/pull/1","id":95229722,"number":1,"title":"Numeric cols","user":{"login":"aaronnorby","id":11711127,"avatar_url":"https://avatars.githubusercontent.com/u/11711127?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronnorby","html_url":"https://github.com/aaronnorby","followers_url":"https://api.github.com/users/aaronnorby/followers","following_url":"https://api.github.com/users/aaronnorby/following{/other_user}","gists_url":"https://api.github.com/users/aaronnorby/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronnorby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronnorby/subscriptions","organizations_url":"https://api.github.com/users/aaronnorby/orgs","repos_url":"https://api.github.com/users/aaronnorby/repos","events_url":"https://api.github.com/users/aaronnorby/events{/privacy}","received_events_url":"https://api.github.com/users/aaronnorby/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-15T16:00:37Z","updated_at":"2015-07-16T22:23:13Z","closed_at":"2015-07-16T22:20:10Z","pull_request":{"url":"https://api.github.com/repos/NathanEpstein/datakit/pulls/1","html_url":"https://github.com/NathanEpstein/datakit/pull/1","diff_url":"https://github.com/NathanEpstein/datakit/pull/1.diff","patch_url":"https://github.com/NathanEpstein/datakit/pull/1.patch"},"body":"Hi Nathan,\r\n\r\nDon't know if you're open to pull requests, but I've been looking around at options for data analysis in javascript, which led me to looking through Datakit.  Since the way `csv` in datakit reads csv files turns all values into strings, I thought it would be useful to have a method that turns select column values into numbers, so that functions like `mean` can be immediately called on them. The function I added is `numeric` and takes three parameters, first is the parsed csv object, second is an array of column heading names (the ones to convert to numbers), and last is a default value, which is what all empty cells in the given columns will be set to (defaults to 0). I've also added tests to `testSpec.js` and another sameple csv file (`test2.csv`) for testing the new method. \r\n\r\nIn any case, you've made a really useful library. Thanks for making it.  \r\n\r\n-Aaron "},"comment":{"url":"https://api.github.com/repos/NathanEpstein/datakit/issues/comments/122120821","html_url":"https://github.com/NathanEpstein/datakit/pull/1#issuecomment-122120821","issue_url":"https://api.github.com/repos/NathanEpstein/datakit/issues/1","id":122120821,"user":{"login":"NathanEpstein","id":3989198,"avatar_url":"https://avatars.githubusercontent.com/u/3989198?v=3","gravatar_id":"","url":"https://api.github.com/users/NathanEpstein","html_url":"https://github.com/NathanEpstein","followers_url":"https://api.github.com/users/NathanEpstein/followers","following_url":"https://api.github.com/users/NathanEpstein/following{/other_user}","gists_url":"https://api.github.com/users/NathanEpstein/gists{/gist_id}","starred_url":"https://api.github.com/users/NathanEpstein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NathanEpstein/subscriptions","organizations_url":"https://api.github.com/users/NathanEpstein/orgs","repos_url":"https://api.github.com/users/NathanEpstein/repos","events_url":"https://api.github.com/users/NathanEpstein/events{/privacy}","received_events_url":"https://api.github.com/users/NathanEpstein/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T22:23:13Z","updated_at":"2015-07-16T22:23:13Z","body":"If you don't mind adding some documentation to the README, I'm happy to republish on NPM with the addition. "}}