nraonrao
 
NRAO Home > CASA > CasaRef
table.removecols - Function

3.2.1 remove one or more columns
Description

Columns can be removed from a table that was opened nomodify=False.
It may not always be possible to remove a column, because some data managers do not support column removal. However, if all columns of a data manager are removed, it will always succeed. It results in the removal of the entire data manager (and its possible files).
Note that function getdminfo can be used to find which columns are served by which data manager.

Arguments





Inputs

columnames

names of columns to be removed

allowed:

stringArray

Default:

Returns
bool

Example

  tb.open("mytable", nomodify=False)  
  tb.removecols ("col1 col2")  
# T  
  print tb.colnames()

Two columns are removed.

Please send any comments or questions about CASA or AIPS++ to aips2-requests@nrao.edu

Copyright © 2008 Associated Universities Inc., Washington, D.C.

This code is available under the terms of the GNU General Public Lincense


Home | Contact Us | Directories | Site Map | Help | Privacy Policy | Search

Updated daily during alpha development.