8000 Properly handle missing attributes in query/eval strings by alexmojaki · Pull Request #32408 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

Properly handle missing attributes in query/eval strings #32408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 10, 2020
Merged
Prev Previous commit
Next Next commit
Use type(ctx) instead of ctx.__class__
  • Loading branch information
alexmojaki committed Mar 17, 2020
commit ef046fb1747c17c9654fcd823f7ce62cb73102b9
2 changes: 1 addition & 1 deletion pandas/core/computation/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ def visit_Attribute(self, node, **kwargs):
return resolved
raise

raise ValueError(f"Invalid Attribute context {ctx.__class__.__name__}")
raise ValueError(f"Invalid Attribute context {type(ctx).__name__}")

def visit_Call(self, node, side=None, **kwargs):

Expand Down
0