Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Inconsistent behaviour on empty RangeIndex intersection #14364
Comments
maxencedb
changed the title from
Inconsistent behaviour on empty IndexRange intersection to Inconsistent behaviour on empty RangeIndex intersection
Oct 6, 2016
|
Actually, with pandas 0.19.0, it is even worse: first example gives an error, the second is still the wrong output:
Thanks for the report! |
jorisvandenbossche
added Bug Indexing Regression
labels
Oct 6, 2016
jorisvandenbossche
added this to the
0.19.1
milestone
Oct 6, 2016
jorisvandenbossche
referenced
this issue
Oct 24, 2016
Closed
BUG: fix empty intersection of RangeIndex (GH14364) #14481
jreback
closed this
in fe2ebc1
Oct 24, 2016
jorisvandenbossche
added a commit
to jorisvandenbossche/pandas
that referenced
this issue
Nov 2, 2016
|
|
jorisvandenbossche |
154883b
|
amolkahat
added a commit
to amolkahat/pandas
that referenced
this issue
Nov 26, 2016
|
|
jorisvandenbossche + amolkahat |
e28a5b0
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
maxencedb commentedOct 6, 2016
•
edited
Description of the issue
Two empty RangeIndex objects with same starts and stops will have a non-null intersection.
Code example
Expected output
Output
Output of
pd.show_versions()Not the most recent version of Pandas, but I believe this behaviour is still present in the master branch
after browsing the code. If somebody could confirm.
commit: None
python: 2.7.10.final.0
python-bits: 64
OS: Linux
OS-release: None
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.18.1
setuptools: 24.0.2
numpy: 1.10.1
dateutil: 1.5
pytz: 2015.4