We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab1ce4e commit 4b21c88Copy full SHA for 4b21c88
pandas/core/computation/scope.py
@@ -133,7 +133,9 @@ def __init__(
133
# shallow copy here because we don't want to replace what's in
134
# scope when we align terms (alignment accesses the underlying
135
# numpy array of pandas objects)
136
- scope_global = self.scope.new_child((global_dict if global_dict is not None else frame.f_globals).copy())
+ scope_global = self.scope.new_child(
137
+ (global_dict if global_dict is not None else frame.f_globals).copy()
138
+ )
139
self.scope = DeepChainMap(scope_global)
140
if not isinstance(local_dict, Scope):
141
scope_local = self.scope.new_child(
0 commit comments