code: def filter_by_key(self, keys, ID=None):
          
          keys = to_list(keys)
          fil = lambda x: x in keys
          if ID is None:
              ID = self.ID
          return self.filter(fil, applyto='keys', ID=ID)
docs: Keep only Measurements with given keys.