| Home | Trees | Indices | Help |
|
|---|
|
|
Read data that is stored in columns of text files.
All read data is available via a dictionary-like interface. If column headers are available, the column names serve as dictionary keys. If no header exists an articfical key is generated: str(number_of_column).
Splitting of text file lines is performed by the standard split() function
(which gets passed the sep argument as separator string) and each
element is converted into the desired datatype.
Because data is read into a dictionary no two columns can have the same name in the header! Each column is stored as a list in the dictionary.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Inherited from Inherited from |
|||
|
|||
__doc__ = enhancedDocString('ColumnData', locals())
|
|||
ncolumns = property(fget= getNColumns)
|
|||
nrows = property(fget= getNRows)
|
|||
|
|||
|
Inherited from |
|||
|
|||
|
Return corresponding value if given key is known to current instance Is used for automatically added properties to the class.
|
|
Write column data to a text file.
:Parameter:
filename: Think about it!
header: If `True` a column header is written, using the column
keys. If `False` no header is written.
header_order: If it is a list of strings, they will be used instead
of simply asking for the dictionary keys. However
these strings must match the dictionary keys in number
and identity. This argument type can be used to
determine the order of the columns in the output file.
The default value is `None`. In this case the columns
will be in an arbitrary order.
sep: String that is written as a separator between to data columns.
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Mon Feb 23 10:49:54 2009 | http://epydoc.sourceforge.net |