code: def build(self):
          
          self._calculate_optimal_column_widths()
  
          pretty_table = self.get_blank_row() + self.new_line  # first row
          pretty_table += self.pretty_format_row(self.labels) + self.new_line
          pretty_table += self.get_blank_row() + self.new_line
  
          for row in self.data:  # append each row
              pretty_table += self.pretty_format_row(row) + self.new_line
          pretty_table += self.get_blank_row()  # ending line
  
          return pretty_table
docs: Builds pretty-formatted table
  
          :return: pretty table