I have a list of associations data set. If I do a simple Mean[] with GroupBy on two columns, I get a nice tidy table display.
dataset[GroupBy["Charge"], GroupBy["Apodization"], Mean, specs]
But if I replace Mean[] with my own function myMean[], I get a totally different, and quite redundant, table display. What's going on!?
myMean[list_] := Mean[list]
dataset[GroupBy["Charge"], GroupBy["Apodization"], myMean, specs]
The actual Dataset is at www.dropbox.com/s/zld9dv34iuomnoz/gdd.m?dl=0
Get["https://www.dropbox.com/s/zld9dv34iuomnoz/gdd.m?dl=1"]
or
Get["https://pastebin.com/raw/SfJ2n5D6"]
or you can get it by
dataset=Uncompress[FromCharacterCode[
Flatten[ImageData[Import["https://i.stack.imgur.com/97yPG.png"],"Byte"]]]]
and in case it isn't obvious
specs = {"D86Diameter", "NullSplitRadius", "AmplitudeRippleSD",
"AmplitudeRipplePP", "PhaseSlope", "PhaseErrorSigma",
"PhaseErrorPP"};


specssince it might be relevant for the answer. In the meantime, try changing the first query operator toGroupBy["Charge"] /* Datasetas a work-around. Erratic dataset formatting is also discussed in (146177) and (143413). – WReach Jul 01 '17 at 04:54GroupBy["Charge"] /* Datasetworkaround in 11.1 - format looks the same as OP's. – alancalvitti Aug 31 '17 at 16:15