Home | Trees | Indices | Help |
|
---|
|
object --+ | Table
Table defines a data table with column and row names. inv: len(self.data) <= len(self.row_names) forall(self.data, lambda x: len(x) <= len(self.col_names))
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
Properties | |
Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
Appends row_names to the list of existing rows |
Appends col_names to the list of existing columns |
Creates a rowname to the row_names list |
Creates a colname to the col_names list |
Sorts the table (in-place) according to data stored in col_id |
Sorts the table 'in-place' according to data stored in col_index method should be in ('asc', 'desc') |
builds indexes of data :returns: nested dictionaries pointing to actual rows |
sets value of cell 'row_indew', 'col_index' to data |
sets value of cell mapped by row_id and col_id to data Raises a KeyError if row_id or col_id are not found in the table |
sets the 'row_index' row pre: type(row_data) == types.ListType len(row_data) == len(self.col_names) |
sets the 'row_id' column pre: type(row_data) == types.ListType len(row_data) == len(self.row_names) Raises a KeyError if row_id is not found |
Appends a row to the table pre: type(row_data) == types.ListType len(row_data) == len(self.col_names) |
Appends row_data before 'index' in the table. To make 'insert' behave like 'list.insert', inserting in an out of range index will insert row_data to the end of the list pre: type(row_data) == types.ListType len(row_data) == len(self.col_names) |
Deletes the 'index' row in the table, and returns it. Raises an IndexError if index is out of range |
Deletes the 'row_id' row in the table. Raises a KeyError if row_id was not found. |
sets the 'col_index' column pre: type(col_data) == types.ListType len(col_data) == len(self.row_names) |
sets the 'col_id' column pre: type(col_data) == types.ListType len(col_data) == len(self.col_names) Raises a KeyError if col_id is not found |
Appends the 'col_index' column pre: type(col_data) == types.ListType len(col_data) == len(self.row_names) |
Appends col_data before 'index' in the table. To make 'insert' behave like 'list.insert', inserting in an out of range index will insert col_data to the end of the list pre: type(col_data) == types.ListType len(col_data) == len(self.row_names) |
Deletes the 'index' column in the table, and returns it. Raises an IndexError if index is out of range |
Deletes the 'col_id' col in the table. Raises a KeyError if col_id was not found. |
Returns a tuple which represents the table's shape |
Returns a tuple which represents the table's shape |
Returns the element at [row_id][col_id] |
Returns the 'row_id' row |
Returns the 'col_id' col |
Returns all the columns in the table |
Applies the stylesheet to this table |
repr(x)
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Sun May 1 23:05:02 2011 | http://epydoc.sourceforge.net |