-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Index._maybe_cast_slice_bound switched meaning of left/right #14354
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
Milestone
Comments
This is related to #14317 But the reason this is now different, is because the index thinks it is monotonic decreasing:
|
Yeah, maybe should reverse this conditional and make |
Interestingly it is both: In [4]: index
Out[4]: DatetimeIndex([], dtype='datetime64[ns]', freq='H')
In [5]: index.is_monotonic_increasing
Out[5]: True
In [6]: index.is_monotonic_decreasing
Out[6]: True |
yeah I think this needs an adjustment to non-pick the decreasing case when both are true. (or just special case on empty). |
jcrist
added a commit
to mrocklin/dask
that referenced
this issue
Oct 6, 2016
Fixes the regression due to pandas-dev/pandas#14354.
jcrist
added a commit
to dask/dask
that referenced
this issue
Oct 6, 2016
Fixes the regression due to pandas-dev/pandas#14354.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
'left' and 'right' changed meaning in
DatetimeIndex._maybe_cast_slice_bound
. Was this intentional?Pandas 0.18
Pandas 0.19
The text was updated successfully, but these errors were encountered: