| |
+
+- __builtin__.object
+
-
+
+- Data
+
-
+
+- CSVData
+
+
+
+
+
+
+
+
+
+class CSVData(Data) |
+
+ |
+Class for reading CSV files. |
+ |
+- Method resolution order:
+- CSVData
+- Data
+- __builtin__.object
+
+
+Methods defined here:
+- __init__(self, file, encoding='utf-8', delimiter=';', quotechar='"', **kwargs)
- Constructor.
+
+filename - CSV table filename
+encoding - CSV table encoding (default: utf-8)
+delimiter - CSV table delimiter (default: ;)
+quotechar - CSV table quotechar (default: ")
+
+- export_csv(self, filename, encoding='utf-8', delimiter=';', quotechar='"', **kwargs)
- Saves the data to CSV file
+
+filename - CSV table filename
+encoding - CSV table encoding (default: utf-8)
+delimiter - CSV table delimiter (default: ;)
+quotechar - CSV table quotechar (default: ")
+
+
+Data and other attributes defined here:
+- Reader = <class ktt.data.Reader>
+
+- Writer = <class ktt.data.Writer>
+
+
+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_data(self, other)
- Adds rows from another data table to this one.
+
+- add_keys(self, *h)
- Adds new keys to the data.
+
+- add_rows(self, n=1)
- Adds some empty rows to the data.
+
+- col_by_idx(self, idx)
- Returns a column by header's index
+
+- col_by_key(self, key)
- Returns a column by header's name
+
+- del_row(self, idx)
- Removes giver row from data
+
+- has_key(self, key)
- Returns True if given key exists in data
+
+- row_by_idx(self, idx)
- Returns a row by index.
+
+- transpose(self, key_idx=0)
- Returns the transposed copy of the data.
+
+key_idx - index of the column, that contains keywords (default: 0)
+
+
+Data descriptors inherited from Data:
+- __dict__
+- dictionary for instance variables (if defined)
+
+- __weakref__
+- list of weak references to the object (if defined)
+
+ |
+
+
+
+class Data(__builtin__.object) |
+
+ |
+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_data(self, other)
- Adds rows from another data table to this one.
+
+- add_keys(self, *h)
- Adds new keys to the data.
+
+- add_rows(self, n=1)
- Adds some empty rows to the data.
+
+- col_by_idx(self, idx)
- Returns a column by header's index
+
+- col_by_key(self, key)
- Returns a column by header's name
+
+- del_row(self, idx)
- Removes giver row from data
+
+- has_key(self, key)
- Returns True if given key exists in data
+
+- row_by_idx(self, idx)
- Returns a row by index.
+
+- transpose(self, key_idx=0)
- Returns the transposed copy of the data.
+
+key_idx - index of the column, that contains keywords (default: 0)
+
+
+Data descriptors defined here:
+- __dict__
+- dictionary for instance variables (if defined)
+
+- __weakref__
+- list of weak references to the object (if defined)
+
+ | |