Skip to content

ENH: Move UndefinedVariableError to error/__init__.py per GH27656 #47338

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

Conversation

dataxerik
Copy link
Contributor

I made a tweak to scripts/pandas_errors_documented.py because it was flagging the annotations import not being in the testing.rst. I excluded future module from the documentation check because the script's intent seems to be ensuring the custom pandas errors are documented. I also fixed a typo.

@mroeschke mroeschke added Enhancement Error Reporting Incorrect or improved errors from pandas labels Jun 13, 2022
@mroeschke mroeschke added this to the 1.5 milestone Jun 13, 2022
@@ -495,7 +495,7 @@ def test_query_syntax_error(self):
df.query("i - +", engine=engine, parser=parser)

def test_query_scope(self):
from pandas.core.computation.ops import UndefinedVariableError
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These imports might be able to be moved to the top (in a follow up PR would be okay)

@mroeschke mroeschke merged commit f40203c into pandas-dev:main Jun 13, 2022
@mroeschke
Copy link
Member

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Error Reporting Incorrect or improved errors from pandas
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants