docs: def _collapse_header(self, header):
          """Combine header columns into related groups.
          """
          out = []
          for i, h in enumerate(header):
              if h.startswith(self._col_quals):
                  out[-1].append(i)
              else:
                  out.append([i])
          return out