Skip to content

Conversation

jbrockmendel
Copy link
Member

The DatetimeIndexOpsMixin._concat_same_type this has can probably become the ExtensionIndex._concat_same_type default. I expect IntervalIndex can be updated to look the same pretty easily, not so sure about CategoricalIndex based on a quick look.

@simonjayhawkins simonjayhawkins added Clean ExtensionArray Extending pandas with custom dtypes or arrays. Refactor Internal refactoring of code and removed Clean labels Jan 27, 2020
@jreback
Copy link
Contributor

jreback commented Feb 2, 2020

can you merge master here and i'll look again

@@ -697,12 +697,28 @@ def _assert_can_do_setop(self, other):
if isinstance(other, PeriodIndex) and self.freq != other.freq:
raise raise_on_incompatible(self, other)

def intersection(self, other, sort=False):
def _setop(self, other, sort, opname: str):
Copy link
Contributor

Choose a reason for hiding this comment

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

eventually if you can type / doc-string this

@jreback jreback added this to the 1.1 milestone Feb 2, 2020
@jreback jreback merged commit 7d1f825 into pandas-dev:master Feb 9, 2020
@jreback
Copy link
Contributor

jreback commented Feb 9, 2020

k some followup requests

@jbrockmendel jbrockmendel deleted the ref-dtl-setlike branch February 9, 2020 17:30
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. Refactor Internal refactoring of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants