-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
ENH: Make use of RangeIndex in DatetimeIndex #12272
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
Comments
@kawochen absolutely for 1 (might not even be that tricky as would simply need to move to sub-class from can you give a more full example for 2)? |
For 2) I just meant
It's much better than updating with some time delta, and quacks like |
ah I c. that brings up a good point actually. |
...and |
Looks like this idea never took off, and since it's possible for DatetimeIndex to be non-monotonic may make the complexity onerous so closing for now. Can reopen if there's interest |
DatetimeIndex
looks like it can benefit fromRangeIndex
#11892 .Use case 1: Evenly-spaced time-series analysis
Use case 2: I sometimes (ab)use
date_range
like a PY3range
in a for loop, which I think is quite neat. It would be cooler if it were lazily evaluated.The text was updated successfully, but these errors were encountered: