Skip to content

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
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

3 participants