As part of a larger analysis task, where I calculate the RMS of frequency bands from a number of spectra, I get an odd KeyError when trying to do a groupby-apply operation on a