Module Import alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias TryExcept body Expr NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ClassDef bases NameLoad body Assign NameStore NameLoad FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Str AttributeLoad NameLoad attr keyword Str keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad If UnaryOpNot Call AttributeLoad CompareEq SubscriptLoad NameLoad ExtSlice Slice Slice Num Call AttributeLoad NameLoad attr attr body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad If UnaryOpNot Call AttributeLoad CompareEq SubscriptLoad NameLoad ExtSlice Slice Index Num Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr attr body Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad keyword NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr Str Str NameLoad keyword Str keyword NameLoad decorator_list Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad Call NameLoad Call NameLoad AttributeLoad NameLoad attr Index Num Assign NameStore ListComp Call NameLoad ListComp TupleLoad SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Str Str NameLoad keyword NameLoad keyword Str keyword NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad body If CompareEq NameLoad Str body Continue Expr Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index ListLoad Num NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assert CompareEq BinOpAdd TupleLoad Str Call NameLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str Assert Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index ListLoad Num Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Str Str Assert Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index ListLoad Num Num Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index TupleLoad Str Str Assert Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index ListLoad Num Num Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assert Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assert Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Num Assert Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Assert Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice Num Assert Call AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice Num NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Expr SubscriptLoad AttributeLoad NameLoad attr Slice Num decorator_list Call NameLoad NameLoad decorator_list
N/A N/A numpy np nose.tools raises dbtools Table N/A RewriteDocstringMeta table_base TestTable N/A N/A N/A xrange N/A N/A N/A NameError N/A N/A xrange range TestTablePrimaryKey N/A TestTable N/A N/A __metaclass__ RewriteDocstringMeta setup N/A N/A self N/A N/A N/A N/A self tbl N/A N/A Table create :memory: Foo N/A self dtypes primary_key id autoincrement True verbose True N/A check_data N/A N/A self indata outdata N/A N/A N/A out True N/A N/A N/A N/A N/A N/A indata N/A N/A N/A 1 N/A N/A outdata as_matrix all N/A N/A out False N/A out N/A check_index N/A N/A self indata outdata N/A N/A N/A out True N/A N/A N/A N/A N/A N/A indata N/A N/A N/A 0 N/A N/A np array N/A outdata index all N/A N/A out False N/A out N/A test_create_autoincrement N/A N/A self N/A N/A N/A Check that autoincrement is set N/A N/A N/A self tbl autoincrement N/A test_create_primary_key N/A N/A self N/A N/A N/A Check that the primary key is set N/A N/A N/A N/A self tbl primary_key id N/A test_create_from_dataframe N/A N/A self N/A N/A N/A Create a table from a dataframe N/A N/A N/A self insert N/A data N/A N/A N/A self tbl select N/A N/A N/A data index name None N/A tbl N/A N/A Table create :memory: Foo_2 data verbose True primary_key id autoincrement True N/A N/A N/A self check N/A self idata N/A N/A tbl select N/A test_create_from_dataframe_invalid_pk N/A N/A self N/A N/A N/A Create a table from a dataframe with invalid primary key N/A N/A N/A self insert N/A data N/A N/A N/A self tbl select N/A N/A N/A Table create :memory: Foo_2 data primary_key foo verbose True N/A N/A raises ValueError test_create_from_dicts N/A N/A self N/A N/A N/A Create a table from dictionaries N/A cols N/A N/A list N/A zip N/A self dtypes N/A 0 N/A dicts N/A N/A dict N/A N/A N/A cols N/A i N/A d N/A i N/A i N/A xrange N/A len d N/A d N/A self idata N/A tbl N/A N/A Table create :memory: Bar dicts verbose True primary_key id autoincrement True N/A N/A N/A self check_index N/A self idata N/A N/A tbl select N/A N/A idx col N/A enumerate cols N/A N/A N/A col id N/A N/A N/A N/A N/A self check_data N/A N/A self idata N/A N/A N/A N/A 0 idx N/A tbl N/A col N/A test_select_columns N/A N/A self N/A N/A N/A Make sure columns of selected data are correct N/A N/A N/A self insert N/A data N/A N/A N/A self tbl select N/A N/A N/A N/A id N/A tuple N/A data columns N/A N/A self tbl columns N/A test_slice_name N/A N/A self N/A N/A N/A Slice the 'name' column N/A N/A N/A self insert N/A data N/A N/A self tbl N/A name N/A N/A N/A self check N/A N/A self idata N/A N/A N/A N/A 0 1 data N/A test_slice_name_age N/A N/A self N/A N/A N/A Slice the 'name' and 'age' columns N/A N/A N/A self insert N/A data N/A N/A self tbl N/A N/A name age N/A N/A N/A self check N/A N/A self idata N/A N/A N/A N/A 0 1 2 data N/A test_slice_name_height N/A N/A self N/A N/A N/A Slice the 'name' and 'height' columns N/A N/A N/A self insert N/A data N/A N/A self tbl N/A N/A name height N/A N/A N/A self check N/A N/A self idata N/A N/A N/A N/A 0 1 3 data N/A test_index_0 N/A N/A self N/A N/A N/A Index the zeroth row N/A N/A N/A self insert N/A data N/A N/A self tbl N/A 0 N/A N/A N/A self check N/A N/A self idata N/A 0 data N/A test_index_1 N/A N/A self N/A N/A N/A Index the first row N/A N/A N/A self insert N/A data N/A N/A self tbl N/A 2 N/A N/A N/A self check N/A N/A self idata N/A 1 data N/A test_index_12 N/A N/A self N/A N/A N/A Slice the first and second rows N/A N/A N/A self insert N/A data N/A N/A self tbl N/A 2 6 N/A N/A N/A self check N/A N/A self idata N/A 2 data N/A test_index_lt_3 N/A N/A self N/A N/A N/A Slice up to the third row N/A N/A N/A self insert N/A data N/A N/A self tbl N/A 6 N/A N/A N/A self check N/A N/A self idata N/A 2 data N/A test_index_geq_3 N/A N/A self N/A N/A N/A Slice past the third row N/A N/A N/A self insert N/A data N/A N/A self tbl N/A 6 N/A N/A N/A self check N/A N/A self idata N/A 2 data N/A test_index_alternate N/A N/A self N/A N/A N/A Slice every other row N/A N/A N/A self insert N/A N/A N/A self tbl N/A 2 N/A N/A raises ValueError N/A