expr : str or unicode
The expression to evaluate. This string cannot contain any Python statements, only Python expressions.
parser : string, default âpandasâ, {âpandasâ, âpythonâ}
The parser to use to construct the syntax tree from the expression. The default of
'pandas'
parses code slightly different than standard Python. Alternatively, you can parse an expression using the'python'
parser to retain strict Python semantics. See the enhancing performance documentation for more details.
engine : string or None, default ânumexprâ, {âpythonâ, ânumexprâ}
The engine used to evaluate the expression. Supported engines are
- None : tries to use
numexpr
, falls back topython
'numexpr'
: This default engine evaluates pandas objects using- numexpr for large speed ups in complex expressions with large frames.
'python'
: Performs operations as if you hadeval
âd in top- level python. This engine is generally not that useful.
More backends may be available in the future.
truediv : bool, optional
Whether to use true division, like in Python >= 3
local_dict : dict or None, optional
A dictionary of local variables, taken from locals() by default.
global_dict : dict or None, optional
A dictionary of global variables, taken from globals() by default.
resolvers : list of dict-like or None, optional
A list of objects implementing the
__getitem__
special method that you can use to inject an additional collection of namespaces to use for variable lookup. For example, this is used in thequery()
method to inject theDataFrame.index
andDataFrame.columns
variables that refer to their respectiveDataFrame
instance attributes.
level : int, optional
The number of prior stack frames to traverse and add to the current scope. Most users will not need to change this parameter.
target : object, optional, default None
This is the target object for assignment. It is used when there is variable assignment in the expression. If so, then target must support item assignment with string keys, and if a copy is being returned, it must also support .copy().
inplace : bool, default False
If target is provided, and the expression mutates target, whether to modify target inplace. Otherwise, return a copy of target with the mutation.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4