-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
Deprecate Index.summary #18217
Comments
this is also a useless method and should be deprecated |
Well, |
I would also deprecate this, and separately we can think whether it is worth to add a |
Apologies if any of this is super naive. I'm new. Deleting the method and any tests directly targeting it isn't enough. There are other failures like
The reason is the output of
(That second element is the output from Would it be more appropriate to
An alternative is to update the tests to make them pass, but I don't know if that's a good idea. |
I would
def summary(self):
warnings.warn("Index.summary is deprecated and will be removed in a future version")
return self._summary() |
Thanks for the feedback. Works for me. I'll get to this soon.
…On Wed, Nov 29, 2017 at 6:31 PM, Tom Augspurger ***@***.***> wrote:
I would
1. Rename Index.summary to Index._summary
2. Change anywhere in pandas where we currently use Index.summary to
Index._summary
3. Make a new Index.summary that looks like
def summary(self):
warnings.warn("Index.summary is deprecated and will be removed in a future version")
return self._summary()
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#18217 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGJ2sN9r904XWOs12ZZwRFsFJSPhFqi1ks5s7hNsgaJpZM4QZwWi>
.
|
@jreback & @TomAugspurger - Are we planning on just deprecating the Index summary method or the DateTimeIndex summary method as well? |
@GGordonGordon yes, all Index subclasses would deprecate this |
The text was updated successfully, but these errors were encountered: