Module Expr Str ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Str Str FunctionDef arguments args NameParam NameParam NameParam defaults Call NameLoad Call NameLoad body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return GeneratorExp NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Slice NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return CompareIn NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad NameLoad body Return NameLoad orelse If Call NameLoad NameLoad NameLoad body Return CompareIn NameLoad AttributeLoad NameLoad attr orelse Return Call NameLoad Call NameLoad BinOpBitAnd Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Dict FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Call NameLoad GeneratorExp Call NameLoad NameLoad comprehension NameStore NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Return ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore AttributeLoad NameLoad attr orelse Raise NameLoad orelse Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If Call NameLoad NameLoad NameLoad body Return AttributeLoad NameLoad attr orelse Return ListComp AttributeLoad NameLoad attr comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Delete SubscriptDel NameLoad Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse Raise NameLoad orelse Delete SubscriptDel AttributeLoad NameLoad attr Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Return Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr ListComp Call NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr GeneratorExp Call NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore ListComp Call NameLoad Call NameLoad NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Num ListComp BinOpMult Str NameLoad comprehension NameStore NameLoad Assign NameStore Call AttributeLoad Str attr GeneratorExp BinOpMod Str NameLoad comprehension NameStore Call NameLoad NameLoad Return Call AttributeLoad Str attr GeneratorExp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body TryExcept body TryExcept body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad BinOpMod Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call NameLoad NameLoad BinOpMod Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Expr Call NameLoad NameLoad BinOpMod Str AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If NameLoad body Assign NameStore IfExp AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad orelse If NameLoad body If CompareLt Call NameLoad NameLoad Num body Assign NameStore NameLoad orelse Assign NameStore IfExp AttributeLoad NameLoad attr CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad GeneratorExp CompareEq Call NameLoad NameLoad AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr If NameLoad body Return NameLoad orelse If UnaryOpNot NameLoad body Raise NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr If NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad If AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call NameLoad NameLoad body For TupleStore NameStore NameStore AttributeLoad NameLoad attr body TryExcept body If CompareIs NameLoad NameLoad body For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad Call NameLoad NameLoad orelse Assign SubscriptStore SubscriptLoad NameLoad Index NameLoad Index NameLoad Call NameLoad SubscriptLoad NameLoad Index NameLoad handlers ExceptHandler type NameLoad body Raise NameLoad If AttributeLoad NameLoad attr body If NameLoad body Assign NameStore ListComp Call NameLoad Call NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad orelse Assign NameStore BinOpAdd ListLoad Call NameLoad AttributeLoad NameLoad attr Call NameLoad NameLoad orelse Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad If NameLoad body TryExcept body Assign AttributeStore NameLoad attr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise NameLoad orelse Assign AttributeStore NameLoad attr NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad body Return If Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad orelse If Call NameLoad SubscriptLoad NameLoad Index Num NameLoad body Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad SubscriptLoad NameLoad Index Num attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad Call NameLoad Call AttributeLoad NameLoad attr orelse Raise NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad If AttributeLoad NameLoad attr body Assign NameStore ListLoad Call AttributeLoad NameLoad attr Num orelse Assign NameStore ListLoad If BoolOpAnd CompareEq Call NameLoad NameLoad Num Call NameLoad SubscriptLoad NameLoad Index Num Str body Assign NameStore Call NameLoad Call NameLoad SubscriptLoad NameLoad Index Num AttributeLoad NameLoad attr Assign NameStore Call NameLoad BinOpAdd NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Return Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num handlers ExceptHandler type NameLoad body TryExcept body Return Call NameLoad AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Return Num decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad kwarg body Expr Str If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TupleLoad NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TupleLoad NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return Call NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Pass decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Pass decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Pass decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Pass decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Pass decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Pass decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Pass decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Pass decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Pass decorator_list NameLoad FunctionDef arguments args defaults body Expr Str Pass decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Call NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Call NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Call NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Num keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Call NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Call NameLoad body Expr Str For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Num Delete SubscriptDel NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Num Delete SubscriptDel NameLoad Index Num Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore ListLoad If Call NameLoad NameLoad Str body Assign NameStore Call NameLoad Call NameLoad NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad If AttributeLoad NameLoad attr body If UnaryOpNot NameLoad body Raise Call NameLoad orelse If BoolOpAnd NameLoad CompareEq AttributeLoad NameLoad attr Num Call NameLoad NameLoad body Raise NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad If BoolOpAnd AttributeLoad NameLoad attr AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad orelse Assign AttributeStore NameLoad attr ListComp Call NameLoad ListLoad NameLoad comprehension NameStore NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Num NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str body Expr Str Assign NameStore TupleLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore IfExp AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num orelse Assign NameStore IfExp AttributeLoad NameLoad attr BinOpAdd AttributeLoad NameLoad attr Num Num Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Raise NameLoad If UnaryOpNot CompareGt NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad orelse Raise NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str If BoolOpOr Call NameLoad NameLoad NameLoad Call NameLoad NameLoad NameLoad body If UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr For NameStore NameLoad body Assign NameStore ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword NameLoad orelse If AttributeLoad NameLoad attr body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Call NameLoad NameLoad keyword NameLoad Assign NameStore Call NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr For NameStore NameLoad body If AttributeLoad NameLoad attr body Assign NameStore ListComp SubscriptLoad NameLoad Index NameLoad comprehension NameStore AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str If UnaryOpNot NameLoad body Return Assign NameStore Call NameLoad Assign NameStore BinOpAdd ListLoad SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad NameLoad Index SubscriptLoad AttributeLoad NameLoad attr Index Num Assign AttributeStore NameLoad attr NameLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body If CompareEq NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num body Continue Assign NameStore BinOpAdd ListLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Return If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot Call NameLoad NameLoad NameLoad body Return If BoolOpOr AttributeLoad NameLoad attr AttributeLoad NameLoad attr body If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr UnaryOpNot AttributeLoad NameLoad attr body Raise NameLoad If CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Raise NameLoad TryExcept body Assign NameStore BinOpAdd AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Assign NameStore Call NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index NameLoad Assign AttributeStore NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Slice ListComp NameLoad comprehension NameStore AttributeLoad NameLoad attr UnaryOpNot BoolOpOr CompareIn Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr Call NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If UnaryOpNot NameLoad body Return If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareIn NameLoad Call NameLoad AttributeLoad NameLoad attr Assign NameStore ListComp NameLoad comprehension NameStore NameLoad CompareIn NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body If CompareIn NameLoad AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad orelse Raise NameLoad If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr keyword Call NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Dict FunctionDef arguments args NameParam NameParam defaults NameLoad body If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Call NameLoad orelse Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body TryExcept body Return BinOpMod Str Call AttributeLoad AttributeLoad NameLoad attr attr handlers ExceptHandler type NameLoad body Return Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body TryExcept body TryExcept body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Expr Call NameLoad NameLoad AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad orelse Raise NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad If NameLoad body Assign NameStore NameLoad orelse Assign NameStore NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad keyword AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults kwarg body Expr Str If UnaryOpNot NameLoad body Assign NameStore Call NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TupleLoad NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults kwarg body Expr Str Assign TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad TupleLoad NameLoad NameLoad If UnaryOpNot NameLoad body Raise Call NameLoad Call AttributeLoad Str attr NameLoad Return Call NameLoad NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body TryExcept body If Call AttributeLoad NameLoad attr NameLoad body Return AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Return Call AttributeLoad Call NameLoad attr NameLoad NameLoad NameLoad decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list ClassDef bases NameLoad body Expr Str decorator_list
N/A N/A 
    tablib.core
    ~~~~~~~~~~~

    This module implements the central Tablib objects.

    :copyright: (c) 2016 by Kenneth Reitz.
    :license: MIT, see LICENSE for more details.
 copy copy operator itemgetter tablib formats tablib.compat OrderedDict unicode N/A __title__ tablib N/A __version__ 0.11.3 N/A __build__ 4355 N/A __author__ Kenneth Reitz N/A __license__ MIT N/A __copyright__ Copyright 2016 Kenneth Reitz N/A __docformat__ restructuredtext Row N/A object N/A N/A Internal Row object. Mainly used for filtering. N/A __slots__ N/A _row tags __init__ N/A N/A self row tags N/A N/A list N/A list N/A N/A N/A self _row N/A list row N/A N/A self tags N/A list tags N/A __iter__ N/A N/A self N/A N/A N/A N/A col N/A col N/A self _row N/A __len__ N/A N/A self N/A N/A N/A N/A len N/A self _row N/A __repr__ N/A N/A self N/A N/A N/A N/A repr N/A self _row N/A __getslice__ N/A N/A self i j N/A N/A N/A N/A N/A self _row N/A i j N/A __getitem__ N/A N/A self i N/A N/A N/A N/A N/A self _row N/A i N/A __setitem__ N/A N/A self i value N/A N/A N/A N/A N/A self _row N/A i value N/A __delitem__ N/A N/A self i N/A N/A N/A N/A N/A self _row N/A i N/A __getstate__ N/A N/A self N/A N/A N/A slots N/A dict N/A slot N/A self __slots__ N/A N/A attribute N/A getattr self slot N/A N/A slots N/A slot attribute N/A slots N/A __setstate__ N/A N/A self state N/A N/A N/A N/A k v N/A list N/A N/A state items N/A N/A N/A setattr self k v N/A rpush N/A N/A self value N/A N/A N/A N/A N/A self insert 0 value N/A lpush N/A N/A self value N/A N/A N/A N/A N/A self insert N/A len value value N/A append N/A N/A self value N/A N/A N/A N/A N/A self rpush value N/A insert N/A N/A self index value N/A N/A N/A N/A N/A N/A self _row insert index value N/A __contains__ N/A N/A self item N/A N/A N/A N/A item N/A self _row N/A tuple N/A N/A self N/A N/A N/A Tuple representation of :class:`Row`. N/A N/A tuple N/A self _row N/A property list N/A N/A self N/A N/A N/A List representation of :class:`Row`. N/A N/A list N/A self _row N/A property has_tag N/A N/A self tag N/A N/A N/A Returns true if current row contains tag. N/A N/A tag None N/A N/A False N/A N/A N/A isinstance tag str N/A N/A N/A tag N/A self tags N/A N/A N/A bool N/A len N/A N/A set tag N/A set N/A self tags N/A N/A Dataset N/A object N/A N/A The :class:`Dataset` object is the heart of Tablib. It provides all core
    functionality.

    Usually you create a :class:`Dataset` instance in your main module, and append
    rows as you collect data. ::

        data = tablib.Dataset()
        data.headers = ('name', 'age')

        for (name, age) in some_collector():
            data.append((name, age))


    Setting columns is similar. The column data length must equal the
    current height of the data and headers must be set ::

        data = tablib.Dataset()
        data.headers = ('first_name', 'last_name')

        data.append(('John', 'Adams'))
        data.append(('George', 'Washington'))

        data.append_col((90, 67), header='age')


    You can also set rows and headers upon instantiation. This is useful if
    dealing with dozens or hundreds of :class:`Dataset` objects. ::

        headers = ('first_name', 'last_name')
        data = [('John', 'Adams'), ('George', 'Washington')]

        data = tablib.Dataset(*data, headers=headers)

    :param \*args: (optional) list of rows to populate Dataset
    :param headers: (optional) list strings for Dataset header row


    .. admonition:: Format Attributes Definition

     If you look at the code, the various output/import formats are not
     defined within the :class:`Dataset` object. To add support for a new format, see
     :ref:`Adding New Formats <newformats>`.

     N/A _formats N/A __init__ N/A N/A self N/A args kwargs N/A N/A N/A self _data N/A list N/A N/A Row arg N/A arg args N/A N/A self __headers None N/A N/A self _separators N/A N/A N/A self _formatters N/A N/A N/A self headers N/A N/A kwargs get headers N/A N/A self title N/A N/A kwargs get title N/A N/A N/A self _register_formats N/A __len__ N/A N/A self N/A N/A N/A N/A self height N/A __getitem__ N/A N/A self key N/A N/A N/A N/A N/A isinstance key str N/A isinstance key unicode N/A N/A N/A key N/A self headers N/A N/A pos N/A N/A N/A self headers index key N/A N/A N/A row N/A pos N/A row N/A self _data N/A N/A KeyError N/A N/A _results N/A N/A self _data N/A key N/A N/A isinstance _results Row N/A N/A N/A _results tuple N/A N/A N/A N/A result tuple N/A result _results N/A __setitem__ N/A N/A self key value N/A N/A N/A N/A N/A self _validate value N/A N/A N/A self _data N/A key N/A Row value N/A __delitem__ N/A N/A self key N/A N/A N/A N/A N/A isinstance key str N/A isinstance key unicode N/A N/A N/A key N/A self headers N/A N/A pos N/A N/A N/A self headers index key N/A N/A N/A self headers N/A pos N/A N/A i row N/A enumerate N/A self _data N/A N/A N/A row N/A pos N/A N/A N/A self _data N/A i row N/A N/A KeyError N/A N/A N/A N/A self _data N/A key N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A N/A <%s dataset> N/A N/A N/A self title lower N/A N/A N/A AttributeError N/A N/A <dataset object> N/A __unicode__ N/A N/A self N/A N/A N/A result N/A N/A N/A self __headers N/A N/A N/A N/A result append N/A N/A unicode h N/A h N/A self __headers N/A N/A N/A result extend N/A N/A list N/A map unicode row N/A row N/A self _data N/A lens N/A N/A list N/A map len row N/A row result N/A field_lens N/A list N/A map max N/A zip lens N/A N/A self __headers N/A N/A N/A N/A result insert 1 N/A N/A - length N/A length field_lens N/A format_string N/A N/A | join N/A N/A {%s:%s} item N/A item N/A enumerate field_lens N/A N/A N/A join N/A N/A N/A format_string format row N/A row result N/A __str__ N/A N/A self N/A N/A N/A N/A N/A self __unicode__ N/A _register_formats N/A N/A cls N/A N/A N/A Adds format properties. N/A fmt N/A formats available N/A N/A N/A N/A N/A N/A N/A setattr cls N/A fmt title N/A property N/A fmt export_set N/A fmt import_set N/A N/A setattr cls N/A get_%s N/A fmt title N/A fmt export_set N/A N/A setattr cls N/A set_%s N/A fmt title N/A fmt import_set N/A N/A N/A cls _formats N/A N/A fmt title N/A N/A fmt export_set N/A fmt import_set N/A N/A N/A AttributeError N/A N/A N/A setattr cls N/A fmt title N/A property N/A fmt export_set N/A N/A setattr cls N/A get_%s N/A fmt title N/A fmt export_set N/A N/A N/A cls _formats N/A N/A fmt title N/A N/A fmt export_set None N/A N/A N/A AttributeError N/A N/A N/A N/A cls _formats N/A N/A fmt title N/A None None N/A classmethod _validate N/A N/A self row col safety N/A None None False N/A N/A Assures size of every row in dataset is of proper proportions. N/A row N/A N/A is_valid N/A N/A self width N/A N/A len row N/A self width True N/A N/A col N/A N/A N/A N/A len col 1 N/A N/A is_valid True N/A N/A is_valid N/A N/A self height N/A N/A len col N/A self height True N/A N/A is_valid N/A all N/A N/A N/A len x N/A self width N/A x N/A self _data N/A is_valid N/A N/A True N/A N/A N/A safety N/A N/A InvalidDimensions N/A False N/A _package N/A N/A self dicts ordered N/A True True N/A N/A Packages Dataset into lists of dictionaries for transmission. N/A _data N/A list N/A self _data N/A ordered N/A N/A dict_pack OrderedDict N/A N/A dict_pack dict N/A N/A self _formatters N/A N/A N/A row_i row N/A enumerate _data N/A N/A N/A col callback N/A self _formatters N/A N/A N/A N/A N/A col None N/A N/A N/A j c N/A enumerate row N/A N/A N/A N/A _data N/A row_i N/A j N/A callback c N/A N/A N/A N/A _data N/A row_i N/A col N/A callback N/A row N/A col N/A N/A N/A IndexError N/A N/A InvalidDatasetIndex N/A N/A self headers N/A N/A dicts N/A N/A data N/A N/A dict_pack N/A list N/A zip N/A self headers data_row N/A data_row _data N/A N/A data N/A N/A N/A list N/A self headers N/A list _data N/A N/A data N/A N/A list row N/A row _data N/A data N/A _get_headers N/A N/A self N/A N/A N/A An *optional* list of strings to be used for header rows and attribute names.

        This must be set manually. The given list length must equal :class:`Dataset.width`.

         N/A N/A self __headers N/A _set_headers N/A N/A self collection N/A N/A N/A Validating headers setter. N/A N/A N/A self _validate collection N/A collection N/A N/A N/A N/A N/A self __headers N/A list collection N/A N/A N/A TypeError N/A N/A TypeError N/A N/A N/A self __headers None N/A N/A headers N/A property _get_headers _set_headers _get_dict N/A N/A self N/A N/A N/A A native Python representation of the :class:`Dataset` object. If headers have
        been set, a list of Python dictionaries will be returned. If no headers have been set,
        a list of tuples (rows) will be returned instead.

        A dataset object can also be imported by setting the `Dataset.dict` attribute: ::

            data = tablib.Dataset()
            data.dict = [{'age': 90, 'first_name': 'Kenneth', 'last_name': 'Reitz'}]

         N/A N/A N/A self _package N/A _set_dict N/A N/A self pickle N/A N/A N/A A native Python representation of the Dataset object. If headers have been
        set, a list of Python dictionaries will be returned. If no headers have been
        set, a list of tuples (rows) will be returned instead.

        A dataset object can also be imported by setting the :class:`Dataset.dict` attribute. ::

            data = tablib.Dataset()
            data.dict = [{'age': 90, 'first_name': 'Kenneth', 'last_name': 'Reitz'}]

         N/A N/A N/A len pickle N/A N/A N/A N/A isinstance N/A pickle N/A 0 list N/A N/A N/A N/A self wipe N/A row pickle N/A N/A N/A N/A self append N/A Row row N/A N/A N/A isinstance N/A pickle N/A 0 dict N/A N/A N/A N/A self wipe N/A N/A self headers N/A list N/A N/A N/A pickle N/A 0 keys N/A row pickle N/A N/A N/A N/A self append N/A Row N/A list N/A N/A row values N/A N/A UnsupportedFormat N/A N/A dict N/A property _get_dict _set_dict _clean_col N/A N/A self col N/A N/A N/A Prepares the given column for insert/append. N/A col N/A list col N/A N/A self headers N/A N/A header N/A N/A N/A col pop 0 N/A N/A header N/A N/A N/A N/A N/A len col 1 N/A hasattr N/A col N/A 0 __call__ N/A N/A col N/A list N/A map N/A col N/A 0 N/A self _data N/A col N/A tuple N/A header col N/A col N/A height N/A N/A self N/A N/A N/A The number of rows currently in the :class:`Dataset`.
           Cannot be directly modified.
         N/A N/A len N/A self _data N/A property width N/A N/A self N/A N/A N/A The number of columns currently in the :class:`Dataset`.
           Cannot be directly modified.
         N/A N/A N/A N/A len N/A N/A self _data N/A 0 N/A N/A N/A IndexError N/A N/A N/A N/A N/A len N/A self headers N/A N/A N/A TypeError N/A N/A 0 N/A property load N/A N/A self in_stream format N/A None kwargs N/A N/A 
        Import `in_stream` to the :class:`Dataset` object using the `format`.

        :param \*\*kwargs: (optional) custom configuration to the format `import_set`.
         N/A N/A format N/A N/A format N/A detect_format in_stream N/A N/A export_set import_set N/A N/A N/A self _formats get format N/A None None N/A N/A import_set N/A N/A N/A UnsupportedFormat N/A N/A Format {0} cannot be imported. format format N/A N/A import_set self in_stream kwargs N/A self N/A export N/A N/A self format N/A kwargs N/A N/A 
        Export :class:`Dataset` object to `format`.

        :param \*\*kwargs: (optional) custom configuration to the format `export_set`.
         N/A N/A export_set import_set N/A N/A N/A self _formats get format N/A None None N/A N/A export_set N/A N/A N/A UnsupportedFormat N/A N/A Format {0} cannot be exported. format format N/A N/A export_set self kwargs N/A xls N/A N/A N/A N/A N/A A Legacy Excel Spreadsheet representation of the :class:`Dataset` object, with :ref:`separators`. Cannot be set.

        .. note::

            XLS files are limited to a maximum of 65,000 rows. Use :class:`Dataset.xlsx` to avoid this limitation.

         .. admonition:: Binary Warning

             :class:`Dataset.xls` contains binary data, so make sure to write in binary mode::

                with open('output.xls', 'wb') as f:
                    f.write(data.xls)
         N/A N/A property xlsx N/A N/A N/A N/A N/A An Excel '07+ Spreadsheet representation of the :class:`Dataset` object, with :ref:`separators`. Cannot be set.

         .. admonition:: Binary Warning

             :class:`Dataset.xlsx` contains binary data, so make sure to write in binary mode::

                with open('output.xlsx', 'wb') as f:
                    f.write(data.xlsx)
         N/A N/A property ods N/A N/A N/A N/A N/A An OpenDocument Spreadsheet representation of the :class:`Dataset` object, with :ref:`separators`. Cannot be set.

         .. admonition:: Binary Warning

             :class:`Dataset.ods` contains binary data, so make sure to write in binary mode::

                with open('output.ods', 'wb') as f:
                    f.write(data.ods)
         N/A N/A property csv N/A N/A N/A N/A N/A A CSV representation of the :class:`Dataset` object. The top row will contain
        headers, if they have been set. Otherwise, the top row will contain
        the first row of the dataset.

        A dataset object can also be imported by setting the :class:`Dataset.csv` attribute. ::

            data = tablib.Dataset()
            data.csv = 'age, first_name, last_name\n90, John, Adams'

        Import assumes (for now) that headers exist.

        .. admonition:: Binary Warning

             :class:`Dataset.csv` uses \r\n line endings by default, so make
             sure to write in binary mode::

                 with open('output.csv', 'wb') as f:
                     f.write(data.csv)

             If you do not do this, and you export the file on Windows, your
             CSV file will open in Excel with a blank line between each row.
         N/A N/A property tsv N/A N/A N/A N/A N/A A TSV representation of the :class:`Dataset` object. The top row will contain
        headers, if they have been set. Otherwise, the top row will contain
        the first row of the dataset.

        A dataset object can also be imported by setting the :class:`Dataset.tsv` attribute. ::

            data = tablib.Dataset()
            data.tsv = 'age	first_name	last_name\n90	John	Adams'

        Import assumes (for now) that headers exist.
         N/A N/A property yaml N/A N/A N/A N/A N/A A YAML representation of the :class:`Dataset` object. If headers have been
        set, a YAML list of objects will be returned. If no headers have
        been set, a YAML list of lists (rows) will be returned instead.

        A dataset object can also be imported by setting the :class:`Dataset.yaml` attribute: ::

            data = tablib.Dataset()
            data.yaml = '- {age: 90, first_name: John, last_name: Adams}'

        Import assumes (for now) that headers exist.
         N/A N/A property json N/A N/A N/A N/A N/A A JSON representation of the :class:`Dataset` object. If headers have been
        set, a JSON list of objects will be returned. If no headers have
        been set, a JSON list of lists (rows) will be returned instead.

        A dataset object can also be imported by setting the :class:`Dataset.json` attribute: ::

            data = tablib.Dataset()
            data.json = '[{"age": 90, "first_name": "John", "last_name": "Adams"}]'

        Import assumes (for now) that headers exist.
         N/A N/A property html N/A N/A N/A N/A N/A A HTML table representation of the :class:`Dataset` object. If
        headers have been set, they will be used as table headers.

        ..notice:: This method can be used for export only.
         N/A N/A property dbf N/A N/A N/A N/A N/A A dBASE representation of the :class:`Dataset` object.

        A dataset object can also be imported by setting the
        :class:`Dataset.dbf` attribute. ::

            # To import data from an existing DBF file:
            data = tablib.Dataset()
            data.dbf = open('existing_table.dbf').read()

            # to import data from an ASCII-encoded bytestring:
            data = tablib.Dataset()
            data.dbf = '<bytestring of tabular data>'

        .. admonition:: Binary Warning

            :class:`Dataset.dbf` contains binary data, so make sure to write in binary mode::

                with open('output.dbf', 'wb') as f:
                    f.write(data.dbf)
         N/A N/A property latex N/A N/A N/A N/A N/A A LaTeX booktabs representation of the :class:`Dataset` object. If a
        title has been set, it will be exported as the table caption.

        .. note:: This method can be used for export only.
         N/A N/A property insert N/A N/A self index row tags N/A N/A list N/A N/A Inserts a row to the :class:`Dataset` at the given index.

        Rows inserted must be the correct size (height or width).

        The default behaviour is to insert the given row to the :class:`Dataset`
        object at the given index.
        N/A N/A N/A self _validate row N/A N/A N/A N/A self _data insert index N/A Row row tags tags N/A rpush N/A N/A self row tags N/A N/A list N/A N/A Adds a row to the end of the :class:`Dataset`.
        See :class:`Dataset.insert` for additional documentation.
         N/A N/A N/A self insert N/A self height row row tags tags N/A lpush N/A N/A self row tags N/A N/A list N/A N/A Adds a row to the top of the :class:`Dataset`.
        See :class:`Dataset.insert` for additional documentation.
         N/A N/A N/A self insert 0 row row tags tags N/A append N/A N/A self row tags N/A N/A list N/A N/A Adds a row to the :class:`Dataset`.
        See :class:`Dataset.insert` for additional documentation.
         N/A N/A N/A self rpush row tags N/A extend N/A N/A self rows tags N/A N/A list N/A N/A Adds a list of rows to the :class:`Dataset` using
        :class:`Dataset.append`
         N/A row rows N/A N/A N/A N/A self append row tags N/A lpop N/A N/A self N/A N/A N/A Removes and returns the first row of the :class:`Dataset`. N/A cache N/A self N/A 0 N/A N/A self N/A 0 N/A cache N/A rpop N/A N/A self N/A N/A N/A Removes and returns the last row of the :class:`Dataset`. N/A cache N/A self N/A -1 N/A N/A self N/A -1 N/A cache N/A pop N/A N/A self N/A N/A N/A Removes and returns the last row of the :class:`Dataset`. N/A N/A N/A self rpop N/A insert_col N/A N/A self index col header N/A None None N/A N/A Inserts a column to the :class:`Dataset` at the given index.

        Columns inserted must be the correct height.

        You can also insert a column of a single callable object, which will
        add a new column with the return values of the callable each as an
        item in the column. ::

            data.append_col(col=random.randint)

        If inserting a column, and :class:`Dataset.headers` is set, the
        header attribute must be set, and will be considered the header for
        that row.

        See :ref:`dyncols` for an in-depth example.

        .. versionchanged:: 0.9.0
           If inserting a column, and :class:`Dataset.headers` is set, the
           header attribute must be set, and will be considered the header for
           that row.

        .. versionadded:: 0.9.0
           If inserting a row, you can add :ref:`tags <tags>` to the row you are inserting.
           This gives you the ability to :class:`filter <Dataset.filter>` your
           :class:`Dataset` later.

         N/A N/A col None N/A N/A col N/A N/A N/A hasattr col __call__ N/A N/A col N/A list N/A map col N/A self _data N/A col N/A N/A self _clean_col col N/A N/A N/A self _validate col col N/A N/A self headers N/A N/A N/A header N/A N/A N/A HeadersNeeded N/A N/A N/A header N/A N/A self height 0 N/A len col N/A N/A InvalidDimensions N/A N/A N/A N/A self headers insert index header N/A N/A N/A self height N/A self width N/A N/A N/A i row N/A enumerate N/A self _data N/A N/A N/A N/A row insert index N/A col N/A i N/A N/A N/A self _data N/A i row N/A N/A N/A self _data N/A N/A Row N/A row N/A row col N/A rpush_col N/A N/A self col header N/A None N/A N/A Adds a column to the end of the :class:`Dataset`.
        See :class:`Dataset.insert` for additional documentation.
         N/A N/A N/A self insert_col N/A self width col header header N/A lpush_col N/A N/A self col header N/A None N/A N/A Adds a column to the top of the :class:`Dataset`.
        See :class:`Dataset.insert` for additional documentation.
         N/A N/A N/A self insert_col 0 col header header N/A insert_separator N/A N/A self index text N/A - N/A N/A Adds a separator to :class:`Dataset` at given index. N/A sep N/A index text N/A N/A N/A N/A self _separators append sep N/A append_separator N/A N/A self text N/A - N/A N/A Adds a :ref:`separator <separators>` to the :class:`Dataset`. N/A N/A N/A self headers N/A N/A index N/A N/A self height N/A self height 0 N/A N/A index N/A N/A self height N/A N/A self height 1 1 N/A N/A N/A self insert_separator index text N/A append_col N/A N/A self col header N/A None N/A N/A Adds a column to the :class:`Dataset`.
        See :class:`Dataset.insert_col` for additional documentation.
         N/A N/A N/A self rpush_col col header N/A get_col N/A N/A self index N/A N/A N/A Returns the column from the :class:`Dataset` at the given index. N/A N/A N/A row N/A index N/A row N/A self _data N/A add_formatter N/A N/A self col handler N/A N/A N/A Adds a :ref:`formatter` to the :class:`Dataset`.

        .. versionadded:: 0.9.5
           :param col: column to. Accepts index int or header str.
           :param handler: reference to callback function to execute
           against each cell value.
         N/A N/A isinstance col str N/A N/A N/A col N/A self headers N/A N/A col N/A N/A N/A self headers index col N/A N/A KeyError N/A N/A N/A col N/A self width N/A N/A N/A N/A N/A self _formatters append N/A col handler N/A N/A InvalidDatasetIndex N/A True N/A filter N/A N/A self tag N/A N/A N/A Returns a new instance of the :class:`Dataset`, excluding any rows
        that do not contain the given :ref:`tags <tags>`.
         N/A _dset N/A copy self N/A N/A _dset _data N/A row N/A row N/A _dset _data N/A N/A row has_tag tag N/A _dset N/A sort N/A N/A self col reverse N/A False N/A N/A Sort a :class:`Dataset` by a specific column, given string (for
        header) or integer (for column index). The order can be reversed by
        setting ``reverse`` to ``True``.

        Returns a new :class:`Dataset` instance where columns have been
        sorted.
         N/A N/A N/A isinstance col str N/A isinstance col unicode N/A N/A N/A N/A self headers N/A N/A HeadersNeeded N/A _sorted N/A sorted N/A self dict key N/A itemgetter col reverse reverse N/A _dset N/A Dataset headers N/A self headers title N/A self title N/A item _sorted N/A N/A row N/A N/A item N/A key N/A key N/A self headers N/A N/A N/A _dset append row row N/A N/A N/A self headers N/A N/A col N/A N/A self headers N/A col N/A _sorted N/A sorted N/A self dict key N/A itemgetter col reverse reverse N/A _dset N/A Dataset headers N/A self headers title N/A self title N/A item _sorted N/A N/A N/A self headers N/A N/A row N/A N/A item N/A key N/A key N/A self headers N/A N/A row item N/A N/A N/A _dset append row row N/A _dset N/A transpose N/A N/A self N/A N/A N/A Transpose a :class:`Dataset`, turning rows into columns and vice
        versa, returning a new ``Dataset`` instance. The first row of the
        original instance becomes the new header row. N/A N/A self N/A N/A N/A _dset N/A Dataset N/A new_headers N/A N/A N/A N/A self headers N/A 0 N/A self N/A N/A N/A self headers N/A 0 N/A N/A _dset headers new_headers N/A N/A index column N/A enumerate N/A self headers N/A N/A N/A column N/A N/A self headers N/A 0 N/A N/A N/A row_data N/A N/A column N/A N/A self get_col index N/A row_data N/A Row row_data N/A N/A N/A _dset append row row_data N/A _dset N/A stack N/A N/A self other N/A N/A N/A Stack two :class:`Dataset` instances together by
        joining at the row level, and return new combined
        ``Dataset`` instance. N/A N/A N/A isinstance other Dataset N/A N/A N/A N/A N/A self width N/A other width N/A N/A InvalidDimensions N/A _dset N/A copy self N/A rows_to_stack N/A row N/A row N/A _dset _data N/A other_rows N/A row N/A row N/A other _data N/A N/A N/A rows_to_stack extend other_rows N/A N/A _dset _data rows_to_stack N/A _dset N/A stack_cols N/A N/A self other N/A N/A N/A Stack two :class:`Dataset` instances together by
        joining at the column level, and return a new
        combined ``Dataset`` instance. If either ``Dataset``
        has headers set, than the other must as well. N/A N/A N/A isinstance other Dataset N/A N/A N/A N/A N/A self headers N/A other headers N/A N/A N/A N/A N/A self headers N/A N/A other headers N/A N/A HeadersNeeded N/A N/A N/A self height N/A other height N/A N/A InvalidDimensions N/A N/A N/A new_headers N/A N/A self headers N/A other headers N/A N/A N/A TypeError N/A N/A new_headers None N/A _dset N/A Dataset N/A column N/A self headers N/A N/A N/A N/A _dset append_col col N/A self N/A column N/A column N/A other headers N/A N/A N/A N/A _dset append_col col N/A other N/A column N/A N/A _dset headers new_headers N/A _dset N/A remove_duplicates N/A N/A self N/A N/A N/A Removes all duplicate rows from the :class:`Dataset` object
        while maintaining the original order. N/A seen N/A set N/A N/A N/A self _data N/A N/A row N/A row N/A self _data N/A N/A N/A N/A tuple row seen N/A N/A seen add N/A tuple row N/A wipe N/A N/A self N/A N/A N/A Removes all content and headers from the :class:`Dataset` object. N/A N/A self _data N/A list N/A N/A self __headers None N/A subset N/A N/A self rows cols N/A None None N/A N/A Returns a new instance of the :class:`Dataset`,
        including only specified rows and columns.
         N/A N/A self N/A N/A N/A N/A rows None N/A N/A rows N/A list N/A range N/A self height N/A N/A cols None N/A N/A cols N/A list N/A self headers N/A rows N/A row N/A row rows N/A row N/A range N/A self height N/A cols N/A header N/A header cols N/A header N/A self headers N/A _dset N/A Dataset N/A N/A _dset headers N/A list cols N/A N/A _dset _data N/A N/A N/A row_no row N/A enumerate N/A self _data N/A N/A data_row N/A N/A key N/A _dset headers N/A N/A N/A key N/A self headers N/A N/A pos N/A N/A N/A self headers index key N/A N/A N/A data_row append N/A row N/A pos N/A N/A KeyError N/A N/A row_no rows N/A N/A N/A N/A _dset append row N/A Row data_row N/A _dset N/A N/A Databook N/A object N/A N/A A book of :class:`Dataset` objects.
     N/A _formats N/A __init__ N/A N/A self sets N/A None N/A N/A N/A sets None N/A N/A N/A self _datasets N/A list N/A N/A N/A self _datasets sets N/A N/A N/A self _register_formats N/A __repr__ N/A N/A self N/A N/A N/A N/A N/A N/A <%s databook> N/A N/A N/A self title lower N/A N/A N/A AttributeError N/A N/A <databook object> N/A wipe N/A N/A self N/A N/A N/A Removes all :class:`Dataset` objects from the :class:`Databook`. N/A N/A self _datasets N/A N/A _register_formats N/A N/A cls N/A N/A N/A Adds format properties. N/A fmt N/A formats available N/A N/A N/A N/A N/A N/A N/A setattr cls N/A fmt title N/A property N/A fmt export_book N/A fmt import_book N/A N/A N/A cls _formats N/A N/A fmt title N/A N/A fmt export_book N/A fmt import_book N/A N/A N/A AttributeError N/A N/A N/A setattr cls N/A fmt title N/A property N/A fmt export_book N/A N/A N/A cls _formats N/A N/A fmt title N/A N/A fmt export_book None N/A N/A N/A AttributeError N/A N/A N/A N/A cls _formats N/A N/A fmt title N/A None None N/A classmethod sheets N/A N/A self N/A N/A N/A N/A self _datasets N/A add_sheet N/A N/A self dataset N/A N/A N/A Adds given :class:`Dataset` to the :class:`Databook`. N/A N/A isinstance dataset Dataset N/A N/A N/A N/A N/A self _datasets append dataset N/A N/A InvalidDatasetType N/A _package N/A N/A self ordered N/A True N/A N/A Packages :class:`Databook` for delivery. N/A collector N/A N/A ordered N/A N/A dict_pack OrderedDict N/A N/A dict_pack dict N/A dset N/A self _datasets N/A N/A N/A N/A collector append N/A dict_pack title N/A dset title data N/A N/A dset _package ordered ordered N/A collector N/A size N/A N/A self N/A N/A N/A The number of the :class:`Dataset` objects within :class:`Databook`. N/A N/A len N/A self _datasets N/A property load N/A N/A self format in_stream N/A kwargs N/A N/A 
        Import `in_stream` to the :class:`Databook` object using the `format`.

        :param \*\*kwargs: (optional) custom configuration to the format `import_book`.
         N/A N/A format N/A N/A format N/A detect_format in_stream N/A N/A export_book import_book N/A N/A N/A self _formats get format N/A None None N/A N/A import_book N/A N/A N/A UnsupportedFormat N/A N/A Format {0} cannot be loaded. format format N/A N/A import_book self in_stream kwargs N/A self N/A export N/A N/A self format N/A kwargs N/A N/A 
        Export :class:`Databook` object to `format`.

        :param \*\*kwargs: (optional) custom configuration to the format `export_book`.
         N/A N/A export_book import_book N/A N/A N/A self _formats get format N/A None None N/A N/A export_book N/A N/A N/A UnsupportedFormat N/A N/A Format {0} cannot be exported. format format N/A N/A export_book self kwargs N/A N/A detect_format N/A N/A stream N/A N/A N/A Return format name of given stream. N/A fmt N/A formats available N/A N/A N/A N/A N/A N/A fmt detect stream N/A N/A N/A fmt title N/A N/A N/A AttributeError N/A N/A N/A import_set N/A N/A stream format N/A None kwargs N/A N/A Return dataset of given stream. N/A N/A N/A N/A Dataset load stream format kwargs N/A import_book N/A N/A stream format N/A None kwargs N/A N/A Return dataset of given stream. N/A N/A N/A N/A Databook load stream format kwargs N/A InvalidDatasetType N/A Exception N/A N/A Only Datasets can be added to a DataBook N/A InvalidDimensions N/A Exception N/A N/A Invalid size N/A InvalidDatasetIndex N/A Exception N/A N/A Outside of Dataset size N/A HeadersNeeded N/A Exception N/A N/A Header parameter must be given when appending a column in this Dataset. N/A UnsupportedFormat N/A NotImplementedError N/A N/A Format is not supported N/A