Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Index._maybe_cast_slice_bound switched meaning of left/right #14354
Comments
|
This is related to pydata#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 https://github.com/pydata/pandas/pull/14317/files#diff-23ecb29e7ceba52109a365e447400d2eR1454 |
mrocklin
commented
Oct 5, 2016
|
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). |
jreback
added Bug Indexing Difficulty Novice Effort Low
labels
Oct 6, 2016
jreback
added this to the
0.19.1
milestone
Oct 6, 2016
jcrist
added a commit
to mrocklin/dask
that referenced
this issue
Oct 6, 2016
|
|
jcrist |
24521a9
|
jcrist
added a commit
to dask/dask
that referenced
this issue
Oct 6, 2016
|
|
jcrist |
10af53a
|
jorisvandenbossche
referenced
this issue
Oct 26, 2016
Merged
BUG: fix DatetimeIndex._maybe_cast_slice_bound for empty index (GH14354) #14501
jorisvandenbossche
closed this
in #14501
Oct 27, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mrocklin commentedOct 5, 2016
'left' and 'right' changed meaning in
DatetimeIndex._maybe_cast_slice_bound. Was this intentional?Pandas 0.18
Pandas 0.19