code: def trim_zeros(self):
                
          tmp = self.numpy()
          f = len(self)-len(_numpy.trim_zeros(tmp, trim='f'))
          b = len(self)-len(_numpy.trim_zeros(tmp, trim='b'))
          return self[f:len(self)-b]
docs: Remove the leading and trailing zeros.