code: def limits(self,variable):
          
          (vmin,vmax), = self.SELECT('min(%(variable)s), max(%(variable)s)' % vars())
          return vmin,vmax
docs: Return minimum and maximum of variable across all rows of data.