code: def ptable(self, rows, columns, grid_args, row_stylist):
          
          if grid_args.color:
              grid = tf.AlternatingRowGrid(BACK_PRI, BACK_ALT)
          elif grid_args.fancy:
              grid = tf.FancyGrid()
          elif grid_args.sparse:
              grid = tf.SparseGrid()
          else:
              grid = None
  
          formatted_table = tf.generate_table(rows=rows, columns=columns, grid_style=grid, row_tagger=row_stylist)
          self.ppaged(formatted_table, chop=True)
docs: Format tabular data for pretty-printing as a fixed-width table and then display it using a pager.
  
          :param rows: can be a list-of-lists (or another iterable of iterables), a two-dimensional
                       NumPy array, or an Iterable of non-iterable objects
          :param columns: column headers and formatting options per column
          :param grid_args: argparse arguments for formatting the grid
          :param row_stylist: function to determine how each row gets styled