Skip to content

Conversation

jbrockmendel
Copy link
Member

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.

],
)
def test_setitem_objects(self, obj):
# make sure we accept datetime64 and datetime in addition to Timestamp
Copy link
Contributor

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?

Copy link
Member Author

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

values = o._shallow_copy(v)
else:
o = o.copy()
o[0:2] = iNaT
Copy link
Contributor

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?

Copy link
Member Author

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

@jreback jreback added Clean Indexing Related to indexing on series/frames, not to indexes themselves labels Aug 2, 2019
@jreback jreback added this to the 1.0 milestone Aug 2, 2019
@jreback
Copy link
Contributor

jreback commented Aug 2, 2019

does this need rebase? as it included the just merged set indexing patch

@jbrockmendel
Copy link
Member Author

does this need rebase?

should be OK as is

@jreback jreback merged commit 4056ded into pandas-dev:master Aug 4, 2019
@jreback
Copy link
Contributor

jreback commented Aug 4, 2019

thanks

@jbrockmendel jbrockmendel deleted the tryput2 branch August 4, 2019 23:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Clean Indexing Related to indexing on series/frames, not to indexes themselves

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants