Skip to content

REF: move astype to ExtensionIndex #30800

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 1 commit into from
Jan 8, 2020
Merged

Conversation

jbrockmendel
Copy link
Member

Broken off from #30717

@jreback jreback added the Index Related to the Index class or subclasses label Jan 8, 2020
@jreback jreback added this to the 1.0 milestone Jan 8, 2020
@@ -414,7 +408,7 @@ def astype(self, dtype, copy=True):
if dtype == self.dtype:
return self.copy() if copy else self

return super().astype(dtype=dtype, copy=copy)
Copy link
Member

Choose a reason for hiding this comment

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

Is there a consistent reason to use Index instead of super?

Copy link
Member Author

Choose a reason for hiding this comment

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

IIRC i got test failures without this change

@jreback jreback merged commit ac9901b into pandas-dev:master Jan 8, 2020
@jreback
Copy link
Contributor

jreback commented Jan 8, 2020

thanks @jbrockmendel
question by @WillAyd

@jbrockmendel jbrockmendel deleted the ref-ei4 branch January 8, 2020 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Index Related to the Index class or subclasses
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants