-
- Notifications
You must be signed in to change notification settings - Fork 19.4k
BUG: fix datetimeindex repr #53634
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
BUG: fix datetimeindex repr #53634
Changes from 31 commits
c0e59e7 642ee78 dcd565e 6a8551e 8fac63d ba877ba 39b93e0 2b6cd5e 09303b2 4d1506a b1c0cf6 8cc72fd 43ac7b8 593e28c 234bebb 2b862ea 86b2fe0 c22f7e7 d12977a 6e651eb e6ef416 0896cc9 95a4a5a 7d78db5 7cc38c2 b2ac29d 56c5b16 76e0138 ad6189f 9dc91ec 41becc0 3f7adc6 8e685b5 423036f f89920b 208d2a9 de007da dfc26c0 64ddebd a9d1698 File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| | @@ -393,11 +393,19 @@ def _is_dates_only(self) -> bool: | |||||
| ------- | ||||||
| bool | ||||||
| """ | ||||||
| from pandas import Timedelta | ||||||
| | ||||||
| from pandas.io.formats.format import is_dates_only | ||||||
| | ||||||
| delta = self.freq.delta if self.freq and hasattr(self.freq, "delta") else None | ||||||
| ||||||
| delta = self.freq.delta if self.freq and hasattr(self.freq, "delta") else None | |
| delta = getattr(self.freq, "delta", None) |
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There seem to be no tests for non-daily and non-hourly freq values. I provided a more comprehensive set of tests in Simar-B#1 Contributor Author There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unfortunately right now it is impossible to differentiate a |
Uh oh!
There was an error while loading. Please reload this page.