-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Avoid try/except in blocks, fix setitem bug in datetimelike EA #27704
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
], | ||
) | ||
def test_setitem_objects(self, obj): | ||
# make sure we accept datetime64 and datetime in addition to Timestamp |
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.
this is worth a release note?
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.
only affects the EAa, should't be user-facing
@@ -418,7 +418,7 @@ def test_value_counts_unique_nunique_null(self, null_obj): | |||
values = o._shallow_copy(v) | |||
else: | |||
o = o.copy() | |||
o[0:2] = iNaT |
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.
what would happen to the arrange if you tried to assign iNaT? raise? coerce to object? do we have a test for that?
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.
coerce to object, and yes
does this need rebase? as it included the just merged set indexing patch |
should be OK as is |
thanks |
The initial impetus for this was avoiding two try/excepts in Block methods (i.e. the diff in internals.blocks). This uncovered the bug in DTA/TDA, which accounts for the rest of the diff.