misoproject / dataset

JavaScript library that makes managing the data behind client-side visualisations easy
http://misoproject.com
GNU General Public License v2.0
1.18k stars 99 forks source link

By default groupby will now handle NaN/undefined/null #149

Closed alexgraul closed 12 years ago

alexgraul commented 12 years ago

Custom methods that are passed in will have to handle them themselves.

alexgraul commented 12 years ago

I did actually initially implement it like that, however then I realised that if you take all those values out you potentially screw up the calculation and given the end user no ability to override.

For example if you data is [9,4,null, null] a method that returns the mean would return 6.5 rather than 3.25.