JuliaDB.jl icon indicating copy to clipboard operation
JuliaDB.jl copied to clipboard

extract stats from OnlineStats

Open simonbyrne opened this issue 7 years ago • 2 comments
trafficstars

One of the problems I hit with the TrueFX notebook is that there wasn't a clear way to extract the numerical values from OnlineStats objects. I ended up doing map(value, tbl) but it seems like there should be a clearer way to do it (and figure a way to give the columns names as well).

simonbyrne avatar Apr 27 '18 23:04 simonbyrne

In the other issue from @shashi:

I think the default should be value...

That makes sense for Mean and Variance, but makes less sense for things like Hist (where you probably want to use the object to make a plot). I'd say we should return the value but need an option to opt out and get the OnlineStat itself. I think adding a keyword arg for reduce and groupreduce would be sufficient. Thoughts?

joshday avatar May 29 '18 12:05 joshday

Yeah, that sounds perfect. A keyword argument will do the job.

shashi avatar May 29 '18 12:05 shashi