Module Expr Str Import alias Import alias Import alias Import alias Import alias Import alias Import alias identifier Import alias identifier ImportFrom alias alias alias ImportFrom alias Import alias identifier FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad TupleLoad NameLoad kwarg body Expr Str Return Call NameLoad BinOpAdd NameLoad Num keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Return Call AttributeLoad Str attr Call NameLoad NameLoad NameLoad decorator_list Assign NameStore Dict Str Str Str Str Str Str Str Str AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Expr Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Return Call AttributeLoad NameLoad attr decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore TupleLoad Str Str Str Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad TupleLoad NameLoad body Assign AttributeStore NameLoad attr BinOpAdd NameLoad Num Assign AttributeStore NameLoad attr Call NameLoad Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad If Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr TryFinally body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad BoolOpOr NameLoad AttributeLoad NameLoad attr attr If UnaryOpNot Call NameLoad NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad BoolOpOr NameLoad AttributeLoad NameLoad attr attr finalbody Delete NameDel If Call NameLoad NameLoad NameLoad body AugAssignAdd NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr Dict decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Return BinOpMod Str TupleLoad AttributeLoad Call NameLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call NameLoad Call NameLoad AttributeLoad NameLoad attr decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str TryExcept body If NameLoad body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad If AttributeLoad NameLoad attr body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Assert BoolOpAnd UnaryOpNot NameLoad UnaryOpNot AttributeLoad NameLoad attr Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body TryExcept body Return SubscriptLoad AttributeLoad NameLoad attr Index NameLoad handlers ExceptHandler type NameLoad body Raise Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str If AttributeLoad NameLoad attr body Assign NameStore BinOpAdd AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr orelse Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore NameLoad body If CompareIn NameLoad NameLoad body Assign SubscriptStore NameLoad Index NameLoad NameLoad Return decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad For TupleStore NameStore TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameLoad body TryFinally body Assign NameStore Call NameLoad NameLoad BinOpAdd Str NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad finalbody Delete NameDel decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpAdd NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr TryFinally body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad keyword ListLoad Str finalbody Delete SubscriptDel NameLoad Slice NameDel decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Str attr AttributeLoad Call NameLoad NameLoad attr AttributeLoad NameLoad attr Call NameLoad NameLoad Assert CompareNotIn NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Assert CompareIn NameLoad AttributeLoad NameLoad attr 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 Assign NameStore BinOpAdd BinOpAdd ListLoad AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr Return Call NameLoad NameLoad decorator_list NameLoad decorator_list
N/A N/A Module for scope operations
 N/A sys N/A struct N/A inspect N/A datetime N/A itertools N/A pprint N/A numpy np N/A pandas pd pandas.compat DeepChainMap map StringIO pandas.core.base StringMixin N/A pandas.computation compu _ensure_scope N/A N/A level global_dict local_dict resolvers target N/A None None N/A None kwargs N/A N/A Ensure that we are grabbing the correct scope. N/A N/A Scope N/A level 1 global_dict global_dict local_dict local_dict resolvers resolvers target target N/A _replacer N/A N/A x N/A N/A N/A Replace a number with its hexadecimal representation. Used to tag
    temporary variables with their calling scope's id.
     N/A N/A N/A hexin N/A ord x N/A N/A N/A TypeError N/A N/A hexin x N/A N/A hex hexin N/A _raw_hex_id N/A N/A obj N/A N/A N/A Return the padded hexadecimal id of ``obj``. N/A packed N/A N/A struct pack @P N/A id obj N/A N/A N/A join N/A map _replacer packed N/A N/A _DEFAULT_GLOBALS N/A Timestamp datetime True False list tuple inf Inf N/A N/A pd lib Timestamp N/A datetime datetime True False list tuple N/A np inf N/A np inf _get_pretty_string N/A N/A obj N/A N/A N/A Return a prettier version of obj

    Parameters
    ----------
    obj : object
        Object to pretty print

    Returns
    -------
    s : str
        Pretty print object repr
     N/A sio N/A StringIO N/A N/A N/A pprint pprint obj stream sio N/A N/A N/A sio getvalue N/A Scope N/A StringMixin N/A N/A Object to hold scope, with a few bells to deal with some custom syntax
    and contexts added by pandas.

    Parameters
    ----------
    level : int
    global_dict : dict or None, optional, default None
    local_dict : dict or Scope or None, optional, default None
    resolvers : list-like or None, optional, default None
    target : object

    Attributes
    ----------
    level : int
    scope : DeepChainMap
    target : object
    temps : dict
     N/A __slots__ N/A level scope target temps __init__ N/A N/A self level global_dict local_dict resolvers target N/A None None N/A None N/A N/A N/A self level N/A level 1 N/A N/A self scope N/A DeepChainMap N/A N/A _DEFAULT_GLOBALS copy N/A N/A self target target N/A N/A isinstance local_dict Scope N/A N/A N/A N/A N/A self scope update N/A local_dict scope N/A N/A N/A local_dict target None N/A N/A N/A self target N/A local_dict target N/A N/A N/A self update N/A local_dict level N/A frame N/A N/A sys _getframe N/A self level N/A N/A N/A N/A self scope N/A N/A N/A self scope new_child N/A N/A N/A global_dict N/A frame f_globals copy N/A N/A N/A isinstance local_dict Scope N/A N/A N/A self scope N/A N/A N/A self scope new_child N/A N/A N/A local_dict N/A frame f_locals copy N/A N/A frame N/A N/A isinstance local_dict Scope N/A N/A resolvers N/A tuple N/A N/A local_dict resolvers maps N/A N/A self resolvers N/A DeepChainMap resolvers N/A N/A self temps N/A N/A __unicode__ N/A N/A self N/A N/A N/A scope_keys N/A _get_pretty_string N/A list N/A N/A N/A self scope keys N/A res_keys N/A _get_pretty_string N/A list N/A N/A N/A self resolvers keys N/A N/A %s(scope=%s, resolvers=%s) N/A N/A N/A type self __name__ scope_keys res_keys N/A has_resolvers N/A N/A self N/A N/A N/A Return whether we have any extra scope.

        For example, DataFrames pass Their columns as resolvers during calls to
        ``DataFrame.eval()`` and ``DataFrame.query()``.

        Returns
        -------
        hr : bool
         N/A N/A bool N/A len N/A self resolvers N/A property resolve N/A N/A self key is_local N/A N/A N/A Resolve a variable name in a possibly local context

        Parameters
        ----------
        key : text_type
            A variable name
        is_local : bool
            Flag indicating whether the variable is local or not (prefixed with
            the '@' symbol)

        Returns
        -------
        value : object
            The value of a particular variable
         N/A N/A N/A is_local N/A N/A N/A N/A self scope N/A key N/A N/A self has_resolvers N/A N/A N/A N/A self resolvers N/A key N/A N/A N/A is_local N/A N/A self has_resolvers N/A N/A N/A self scope N/A key N/A N/A N/A KeyError N/A N/A N/A N/A N/A N/A self temps N/A key N/A N/A N/A KeyError N/A N/A N/A N/A N/A compu ops UndefinedVariableError key is_local N/A swapkey N/A N/A self old_key new_key new_value N/A None N/A N/A Replace a variable name, with a potentially new value.

        Parameters
        ----------
        old_key : str
            Current variable name to replace
        new_key : str
            New variable name to replace `old_key` with
        new_value : object
            Value to be replaced along with the possible renaming
         N/A N/A self has_resolvers N/A N/A maps N/A N/A N/A self resolvers maps N/A N/A self scope maps N/A N/A maps N/A N/A self scope maps N/A N/A N/A maps append N/A self temps N/A mapping maps N/A N/A N/A old_key mapping N/A N/A N/A mapping N/A new_key new_value N/A N/A _get_vars N/A N/A self stack scopes N/A N/A N/A Get specifically scoped variables from a list of stack frames.

        Parameters
        ----------
        stack : list
            A list of stack frames as returned by ``inspect.stack()``
        scopes : sequence of strings
            A sequence containing valid stack frame attribute names that
            evaluate to a dictionary. For example, ('locals', 'globals')
         N/A variables N/A N/A itertools product scopes stack N/A N/A scope N/A frame _ _ _ _ _ variables N/A N/A N/A N/A d N/A getattr frame N/A f_ scope N/A N/A self scope N/A N/A N/A self scope new_child d N/A N/A frame N/A update N/A N/A self level N/A N/A N/A Update the current scope by going back `level` levels.

        Parameters
        ----------
        level : int or None, optional, default None
         N/A sl N/A level 1 N/A stack N/A N/A inspect stack N/A N/A N/A N/A N/A self _get_vars N/A stack N/A sl scopes N/A locals N/A N/A N/A stack N/A stack N/A add_tmp N/A N/A self value N/A N/A N/A Add a temporary variable to the scope.

        Parameters
        ----------
        value : object
            An arbitrary object to be assigned to a temporary variable.

        Returns
        -------
        name : basestring
            The name of the temporary variable created.
         N/A name N/A N/A {0}_{1}_{2} format N/A N/A type value __name__ N/A self ntemps N/A _raw_hex_id self N/A N/A name N/A self temps N/A N/A N/A self temps N/A name value N/A N/A name N/A self temps N/A name N/A ntemps N/A N/A self N/A N/A N/A The number of temporary variables in this scope N/A N/A len N/A self temps N/A property full_scope N/A N/A self N/A N/A N/A Return the full scope for use with passing to engines transparently
        as a mapping.

        Returns
        -------
        vars : DeepChainMap
            All variables in this scope.
         N/A maps N/A N/A N/A N/A self temps N/A N/A self resolvers maps N/A N/A self scope maps N/A N/A DeepChainMap maps N/A property N/A