Skip to content

REF: share delete, putmask, insert between ndarray-backed EA indexes #37529

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
merged 9 commits into from
Oct 31, 2020

Conversation

jbrockmendel
Copy link
Member

No description provided.

@jreback jreback added ExtensionArray Extending pandas with custom dtypes or arrays. Refactor Internal refactoring of code labels Oct 31, 2020
@jreback jreback added this to the 1.2 milestone Oct 31, 2020
@jreback jreback added the Index Related to the Index class or subclasses label Oct 31, 2020
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

lgtm ping on green (comments are for followon)

)
if isinstance(loc, slice) and loc.step in (1, None):
if loc.start in (0, None) or loc.stop in (len(self), None):
elif self.freq is not None:
Copy link
Contributor

Choose a reason for hiding this comment

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

i am not sure that these specific freq routines are really worth it given the extra code. Can't we just re-infer the freq? (sure if we do this constantly its not as performant, but this is not likey a common case).

ok for here, but if you can have a look at some point

Copy link
Member Author

Choose a reason for hiding this comment

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

thats a reasonable thought. i recently found a PITA bug in infer_freq though, so definitely not until that is sorted out

Copy link
Contributor

Choose a reason for hiding this comment

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

kk maybe worthile to create an issue to see what implications / address later is.

@jreback jreback merged commit d5bc5ae into pandas-dev:master Oct 31, 2020
@jbrockmendel jbrockmendel deleted the ref-share-delete branch October 31, 2020 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ExtensionArray Extending pandas with custom dtypes or arrays. Index Related to the Index class or subclasses Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants