code: def limit(self, r=5):
          
          try:
              self.df = self.df[:r]
          except Exception as e:
              self.err(e, "Can not limit data")
docs: Limit selection to a range in the main dataframe