-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
API: Datetime-like indexes summary
should output the same format
#9116
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
Conversation
somewhat separately the freq printing for TimeDeltaIndex is showing the actual obj and not the string repr |
Yeah,
|
I think u can fix it here |
@@ -459,3 +459,20 @@ def repeat(self, repeats, axis=None): | |||
""" | |||
return self._simple_new(self.values.repeat(repeats), | |||
name=self.name) | |||
|
|||
def summary(self, name=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you now you are modifying it also add a docstring?
@jreback, @jorisvandenbossche |
Looks good to me! |
API: Datetime-like indexes `summary` should output the same format
thanks @sinhrks |
Related to #6469. Made all datetime-like indexes
summary
should output the same format.Before
After
DatetimeIndex
andPeriodIndex
use_format_func
. This madeDatetimeIndex
not to output hour/minutes.. when its frequency is more than a day.PeriodIndex
outputs itsfreq
TimedeltaIndex
has no changes.