Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WARN: Remove false positive warning for iloc inplaceness #48397
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
WARN: Remove false positive warning for iloc inplaceness #48397
Changes from 16 commits
8f7432b
9ac855b
2c3920c
8fc58f3
ab1080c
1aa0448
40427c4
7240895
a1a824c
03bc147
44e910d
0d2c2c4
7f04bdc
c4b0780
49da3ce
7e4e5e8
805ec5d
7762cda
ead315a
8a772c7
b4714ce
a6de70e
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
@phofl i think i misunderstood earlier when i said this should warn. i was under the impression that the RHS was
pd.Series([pd.NaT]*N, dtype="M8[ns]")
, not the scalar pd.NaT. With the scalar, this should not warn.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.
that is an existing problem that i think is orthogonal to this PR, so no need to hold up on this.
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.
Yep agreed, the NaT gets cast to an all NaT Series without a timezone, hence this seems equal
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.
ideal then would be to assert_warns(None) unconditionally and xfail the tzaware case
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.
Done