Removes columns from a table.
Syntax
table_name.deletecol(col_loc) [num_cols]
where col_loc specifies the first column to be removed. The col_loc may either be the integer column number (e.g. “3”) or the column letter (e.g. “C”).
The num_cols specifies the number of columns to remove from the table. If num_cols is not provided, the default is one.
Examples
tab1.deletecol(d) 2
removes two columns beginning at the “d” or fourth column.
Cross-references
For other row and columns operations, see
Table::deleterow,
Table::insertcol, and
Table::insertrow.
For additional discussion of table commands see
“Working with Tables and Spreadsheets”.
See also
“Table and Text Objects” for a discussion and examples of table formatting in EViews.