'return only the first num_rows rows'

def limit(self, num_rows=None):

    limit_table = Table(self.columns)
    limit_table.rows = (self.rows[:num_rows] if (num_rows is not None) else self.rows)
    return limit_table
