Commit 2c48272
committed
Only return -1 in get_indexer for incorrect values
Instead of returning [-1, -1, -1] when the middle value is incorrect
type, return [a, -1, b].1 parent 120e2bc commit 2c48272
File tree
2 files changed
+14
-7
lines changed- pandas
- core/indexes
- tests/indexes/interval
2 files changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
833 | 833 | | |
834 | 834 | | |
835 | 835 | | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
836 | 839 | | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
| 840 | + | |
842 | 841 | | |
843 | 842 | | |
844 | 843 | | |
| |||
854 | 853 | | |
855 | 854 | | |
856 | 855 | | |
857 | | - | |
858 | | - | |
| 856 | + | |
| 857 | + | |
859 | 858 | | |
860 | 859 | | |
861 | 860 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
591 | 591 | | |
592 | 592 | | |
593 | 593 | | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
594 | 602 | | |
595 | 603 | | |
596 | 604 | | |
| |||
0 commit comments