| Home | Trees | Index | Help |
|
|---|
| Package picalo :: Package base :: Module TableArray :: Class TableArray |
|
object--+ |list--+ | TableArray
| Method Summary | |
|---|---|
A list of picalo tables. | |
__add__(self,
other)
| |
__getitem__(self,
index)
| |
__getslice__(self,
i,
j)
| |
__mul__(self,
other)
| |
__setitem__(self,
key,
value)
| |
__setslice__(self,
i,
j,
sequence)
| |
__sub__(self,
other)
| |
append(self,
value)
| |
Appends a calculated column to each table in the list. | |
Appends a calculated column to each table in the list. | |
Adds a new column to each table in the list. | |
Clears any active filter to all tables in the list. | |
Returns the given column from the first table in this list. | |
Returns the column count from the first table in this list. | |
Combines this table array into a single table. | |
Deletes a column from each table in the list. | |
Applies the given filter to all tables in the list. | |
Returns the column names from the first table in this list. | |
Returns the columns from the first table in this list. | |
Guesses the column types for all tables in the list. | |
Inserts a calculated column to each table in the list. | |
Inserts a calculated column to each table in the list. | |
Inserts a new column to each table in the list. | |
Returns whether the table has been changed since loading | |
Returns whether the first table in this list is filtered. | |
Moves a column to another location for each table in the list. | |
Saves this TableList in native Picalo format. | |
Saves this TableList in CSV format. | |
Saves this TableList in delimited format. | |
Saves this TableList in fixed format. | |
Saves this TableList in tsv format. | |
Saves this TableList in xml format. | |
Sets whether the class has been changed since loading. | |
Sets the format for a column in all tables in the list. | |
Sets the column name for all tables in the list. | |
Sets the read only status of this table. | |
Sets the column type for all tables in the list. | |
Returns the structure of the first table in this list. | |
Opens the table list for viewing in the Picalo user interface. | |
Ensures that a given table is valid | |
| Inherited from list | |
x.__contains__(y) <==> y in x | |
x.__delitem__(y) <==> del x[y] | |
Use of negative indices is not supported. | |
x.__eq__(y) <==> x==y | |
x.__ge__(y) <==> x>=y | |
x.__getattribute__('name') <==> x.name | |
x.__gt__(y) <==> x>y | |
x.__hash__() <==> hash(x) | |
x.__iadd__(y) <==> x+=y | |
x.__imul__(y) <==> x*=y | |
x.__iter__() <==> iter(x) | |
x.__le__(y) <==> x<=y | |
x.__len__() <==> len(x) | |
x.__lt__(y) <==> x<y | |
x.__ne__(y) <==> x!=y | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
x.__repr__() <==> repr(x) | |
L.__reversed__() -- return a reverse iterator over the list | |
x.__rmul__(n) <==> n*x | |
L.count(value) -> integer -- return number of occurrences of value | |
L.extend(iterable) -- extend list by appending elements from the iterable | |
L.index(value, [start, [stop]]) -> integer -- return first index of value | |
L.insert(index, object) -- insert object before index | |
L.pop([index]) -> item -- remove and return item at index (default last) | |
L.remove(value) -- remove first occurrence of value | |
L.reverse() -- reverse *IN PLACE* | |
L.sort(cmp=None, key=None, reverse=False) -- stable sort *IN PLACE*; cmp(x, y) -> -1, 0, 1 | |
| Inherited from object | |
x.__delattr__('name') <==> del x.name | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) | |
| Method Details |
|---|
__init__(self,
*args)
|
append_calculated(self, name, expression)Appends a calculated column to each table in the list. See the definition of this method in Table for more information. |
append_calculated_static(self, name, column_type, expression)Appends a calculated column to each table in the list. See the definition of this method in Table for more information. |
append_column(self, name, column_type, values=None)Adds a new column to each table in the list. See the definition of this method in Table for more information. |
clear_filter(self)Clears any active filter to all tables in the list. See the definition of this method in Table for more information. |
column(self, col)Returns the given column from the first table in this list. Since all tables have the same column definitions, it is comparable across all tables in the list. |
column_count(self)Returns the column count from the first table in this list. Since all tables have the same column definitions, it is comparable across all tables in the list. |
combine(self)Combines this table array into a single table. This is a kind of 'anti-stratification'. |
delete_column(self, column)Deletes a column from each table in the list. See the definition of this method in Table for more information. |
filter(self, expression=None)Applies the given filter to all tables in the list. See the definition of this method in Table for more information. |
get_column_names(self)Returns the column names from the first table in this list. Since all tables have the same column definitions, it is comparable across all tables in the list. |
get_columns(self)Returns the columns from the first table in this list. Since all tables have the same column definitions, it is comparable across all tables in the list. |
guess_types(self, num_records=-1)Guesses the column types for all tables in the list. See the definition of this method in Table for more information. |
insert_calculated(self, index, name, expression)Inserts a calculated column to each table in the list. See the definition of this method in Table for more information. |
insert_calculated_static(self, index, name, column_type, expression)Inserts a calculated column to each table in the list. See the definition of this method in Table for more information. |
insert_column(self, index, name, column_type, values=None)Inserts a new column to each table in the list. See the definition of this method in Table for more information. |
is_changed(self)Returns whether the table has been changed since loading |
is_filtered(self)Returns whether the first table in this list is filtered. |
move_column(self, column, new_index)Moves a column to another location for each table in the list. See the definition of this method in Table for more information. |
save(self, filename, respect_filter=False)Saves this TableList in native Picalo format. This is the preferred format to save TableLists in because all column types, formulas, and so forth are saved.
|
save_csv(self, filename, line_ending='\n', none='', encoding='utf-8', respect_filter=False)Saves this TableList in CSV format. Since the table list probably has multiple tables in it, one CSV per table is created by prepending 1, 2, 3 to the filename.
|
save_delimited(self, filename, delimiter=',', qualifier='"', line_ending='\n', none='', encoding='utf-8', respect_filter=False)Saves this TableList in delimited format. Since the table list probably has multiple tables in it, one delimited file per table is created by prepending 1, 2, 3 to the filename.
|
save_fixed(self, filename, line_ending='\n', none='', respect_filter=False)Saves this TableList in fixed format. Since the table list probably has multiple tables in it, one fixed file per table is created by prepending 1, 2, 3 to the filename.
|
save_tsv(self, filename, line_ending='\n', none='', encoding='utf-8', respect_filter=False)Saves this TableList in tsv format. Since the table list probably has multiple tables in it, one tsv file per table is created by prepending 1, 2, 3 to the filename.
|
save_xml(self, filename, line_ending='\n', indent='\t', compact=False, none='', respect_filter=False)Saves this TableList in xml format. Since the table list probably has multiple tables in it, one xml file per table is created by prepending 1, 2, 3 to the filename.
|
set_changed(self, changed)Sets whether the class has been changed since loading. This is not normally called by users. |
set_format(self, column, format=None)Sets the format for a column in all tables in the list. See the definition of this method in Table for more information. |
set_name(self, column, name)Sets the column name for all tables in the list. See the definition of this method in Table for more information. |
set_readonly(self, readonly_flag=False)Sets the read only status of this table. Tables that are read only cannot be modified. Normally, tables are initially not read only (i.e. can be modified). The only exception is tables loaded from databases, which are read only.
|
set_type(self, column, column_type=None, format=None, expression=None)Sets the column type for all tables in the list. See the definition of this method in Table for more information. |
structure(self)Returns the structure of the first table in this list. Since all tables have the same column definitions, it is comparable across all tables in the list. |
view(self)Opens the table list for viewing in the Picalo user interface. The resulting view allows you to page through the tables in the list. See the first example. You can view individual tables in the list by using the [n] notation. See the second example for this notation. Example:
>>> data = Table([
... ('id', int),
... ('name', unicode),
... ],[
... [ 1, 'Benny' ],
... [ 2, 'Vijay' ],
... ])
>>> tables = Grouping.stratify_by_value(data, 'id')
>>> tables.view()
Example:
>>> data = Table([
... ('id', int),
... ('name', unicode),
... ],[
... [ 1, 'Benny' ],
... [ 2, 'Vijay' ],
... ])
>>> tables = Grouping.stratify_by_value(data, 'id')
>>> tables[0].view()
|
_check_valid_table(self, table)Ensures that a given table is valid |
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Mon Aug 20 05:38:17 2007 | http://epydoc.sf.net |