original_docstring: Set up the fields for `columns`.
  
          Parameters
          ----------
          columns : sequence or OrderedDict
              Names of the column.  In the case of an OrderedDict, a map between
              short and long names.
          ids : sequence
              A collection of column names that uniquely identify a column.
          table_width : int, optional
              Update the table width to this value.
          
docstring: Set up the fields for `columns`.
  Parameters
  
  columns : sequence or OrderedDict
  Names of the column.  In the case of an OrderedDict, a map between
  short and long names.
  ids : sequence
  A collection of column names that uniquely identify a column.
  table_width : int, optional
  Update the table width to this value.
docstring_tokens: Set up the fields for ` columns ` . Parameters columns : sequence or OrderedDict Names of the column . In the case of an OrderedDict a map between short and long names . ids : sequence A collection of column names that uniquely identify a column . table_width : int optional Update the table width to this value .
code: def init_columns(self, columns, ids, table_width=None):
          """Set up the fields for `columns`.
  
          Parameters
          ----------
          columns : sequence or OrderedDict
              Names of the column.  In the case of an OrderedDict, a map between
              short and long names.
          ids : sequence
              A collection of column names that uniquely identify a column.
          table_width : int, optional
              Update the table width to this value.
          """
          self.fields.build(columns, table_width=table_width)
          self.columns = columns
          self.ids = ids
  
          if self._rows:
              # There are pre-existing rows, so this init_columns() call was due
              # to encountering unknown columns.  Fill in the previous rows.
              style = self.fields.style
              for row in self._rows:
                  for col in columns:
                      if col not in row.row:
                          cstyle = style[col]
                          if "missing" in cstyle:
                              missing = Nothing(cstyle["missing"])
                          else:
                              missing = NOTHING
                          row.row[col] = missing
              if self.fields.has_header:
                  self._add_header()
code_tokens: def init_columns ( self , columns , ids , table_width = None ) : self . fields . build ( columns , table_width = table_width ) self . columns = columns self . ids = ids if self . _rows : style = self . fields . style for row in self . _rows : for col in columns : if col not in row . row : cstyle = style [ col ] if "missing" in cstyle : missing = Nothing ( cstyle [ "missing" ] ) else : missing = NOTHING row . row [ col ] = missing if self . fields . has_header : self . _add_header ( )
short_docstring: Set up the fields for `columns`.
short_docstring_tokens: Set up the fields for ` columns ` .
comment: """Set up the fields for `columns`.
  
          Parameters
          ----------
          columns : sequence or OrderedDict
              Names of the column.  In the case of an OrderedDict, a map between
              short and long names.
          ids : sequence
              A collection of column names that uniquely identify a column.
          table_width : int, optional
              Update the table width to this value.
          """$SEP$# There are pre-existing rows, so this init_columns() call was due$SEP$# to encountering unknown columns.  Fill in the previous rows.