Using the code, where ds is data formatted into a Dataset
GroupBy[ds, First] // TableForm
I get a table that I wanted, but I was wondering if I could somehow use the header of my dataset to designate which column to group by.
I just want to guard against a file generating some data and the first column not being the one I want to group my data by.
If we call the name of the column "name", I would like to do something to the tune of
GroupBy[ds, name] // TableForm
ds[GroupBy[#name&]]
orGroupBy[#name&][ds]
orGroupBy[ds, #name&]
? $\endgroup$