original_docstring: Build the style and fields.
  
          Parameters
          ----------
          columns : list of str
              Column names.
          table_width : int, optional
              Table width to use instead of the previously specified width.
          
docstring: Build the style and fields.
  Parameters
  
  columns : list of str
  Column names.
  table_width : int, optional
  Table width to use instead of the previously specified width.
docstring_tokens: Build the style and fields . Parameters columns : list of str Column names . table_width : int optional Table width to use instead of the previously specified width .
code: def build(self, columns, table_width=None):
          """Build the style and fields.
  
          Parameters
          ----------
          columns : list of str
              Column names.
          table_width : int, optional
              Table width to use instead of the previously specified width.
          """
          self.columns = columns
          self._known_columns = set(columns)
          default = dict(elements.default("default_"),
                         **self.init_style.get("default_", {}))
          self.style = elements.adopt({c: default for c in columns},
                                      self.init_style)
  
          # Store special keys in _style so that they can be validated.
          self.style["default_"] = default
          self.style["header_"] = self._compose("header_", {"align", "width"})
          self.style["aggregate_"] = self._compose("aggregate_",
                                                   {"align", "width"})
          self.style["separator_"] = self.init_style.get(
              "separator_", elements.default("separator_"))
          lgr.debug("Validating style %r", self.style)
          if table_width is not None:
              self._table_width = table_width
          elif self._table_width is None:
              self._table_width = self.init_style.get(
                  "width_", elements.default("width_"))
          self.style["width_"] = self._table_width
          elements.validate(self.style)
  
          self._setup_fields()
  
          self.hidden = {c: self.style[c]["hide"] for c in columns}
          self._reset_width_info()
code_tokens: def build ( self , columns , table_width = None ) : self . columns = columns self . _known_columns = set ( columns ) default = dict ( elements . default ( "default_" ) , ** self . init_style . get ( "default_" , { } ) ) self . style = elements . adopt ( { c : default for c in columns } , self . init_style ) self . style [ "default_" ] = default self . style [ "header_" ] = self . _compose ( "header_" , { "align" , "width" } ) self . style [ "aggregate_" ] = self . _compose ( "aggregate_" , { "align" , "width" } ) self . style [ "separator_" ] = self . init_style . get ( "separator_" , elements . default ( "separator_" ) ) lgr . debug ( "Validating style %r" , self . style ) if table_width is not None : self . _table_width = table_width elif self . _table_width is None : self . _table_width = self . init_style . get ( "width_" , elements . default ( "width_" ) ) self . style [ "width_" ] = self . _table_width elements . validate ( self . style ) self . _setup_fields ( ) self . hidden = { c : self . style [ c ] [ "hide" ] for c in columns } self . _reset_width_info ( )
short_docstring: Build the style and fields.
short_docstring_tokens: Build the style and fields .
comment: """Build the style and fields.
  
          Parameters
          ----------
          columns : list of str
              Column names.
          table_width : int, optional
              Table width to use instead of the previously specified width.
          """$SEP$# Store special keys in _style so that they can be validated.