| |
- Data
-
- CSVData
class CSVData(Data) |
|
Class for reading CSV files. |
|
Methods defined here:
- __init__(self, filename, encoding='utf-8', delimiter=';', quotechar='"', **kwargs)
- Constructor.
filename - CSV table filename
encoding - CSV table encoding
delimiter - CSV table delimiter
quotechar - CSV table quotechar
transpose=True - transpose the table
Data and other attributes defined here:
- Reader = <class data.Reader>
Methods inherited from Data:
- __getitem__(self, pair)
- Returns a value for given key and row.
- __repr__(self)
- __setitem__(self, pair, value)
- Sets a value for given key and row.
- __str__(self)
- Returns data as string.
- add_keys(self, *h)
- Adds new keys to the data.
- add_rows(self, n=1)
- Adds some empty rows to the data.
- col_by_key(self, key)
- Returns a column by header's name
- has_key(self, key)
- Returns True if given key exists in data
- row_by_idx(self, idx)
- Returns a row by index.
|
class Data |
|
Empty data class. Can be used for a subclassing or procedural data creation. |
|
Methods defined here:
- __getitem__(self, pair)
- Returns a value for given key and row.
- __init__(self, *args, **kwargs)
- Constructor
- __repr__(self)
- __setitem__(self, pair, value)
- Sets a value for given key and row.
- __str__(self)
- Returns data as string.
- add_keys(self, *h)
- Adds new keys to the data.
- add_rows(self, n=1)
- Adds some empty rows to the data.
- col_by_key(self, key)
- Returns a column by header's name
- has_key(self, key)
- Returns True if given key exists in data
- row_by_idx(self, idx)
- Returns a row by index.
| |