Summarize whole table by a column
tischi opened this issue · 1 comments
tischi commented
Hi!
Thanks again for creating and maintaining this great library!
I would like to do something like: table2 = table.summarize().by("treatment");
, where I would like table2
to have all the columns of table
and for the numeric columns I would like to aggregate using mean
and for the non-numeric columns in my case it would be OK to just pick one of the values (of the respective treatment
).
Could you maybe point me in the direction how to achieve this most elegantly?
Thanks a lot!
tischi commented
I think I can figure that out myself :)