-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Error raised message: DataFrame eval will not work with 'Timestamp' column name #47273
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/pandas-dev/pandas/blob/main/pandas/core/computation/scope.py#L56
we explicitly set this. as an injected global. i am not sure what you could do there but i agree with @phofl that we would like to allow this
def test_eval_no_support_column_name(request, column): | ||
# GH#44603 | ||
if column in ["True", "False", "inf", "Inf"]: | ||
request.node.add_marker(pytest.mark.xfail(raises=KeyError)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a reason here (with a f-string with the column value)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a whatsnew entry (for 1.5, conversion bug fix section)
Have added a whatsnew entry (for 1.5, conversion bug fix section) |
thanks @weikhor this is great! |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.