-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DataFrame.xs() throws value error with non-unique multi index if level
kwarg is called.
#13719
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
Labels
Milestone
Comments
Thanks for reporting! |
Just an FYI...I recently ran into this. |
This is actually now working for me on master. So if someone wants to add a test for this? |
nmusolino
pushed a commit
to nmusolino/pandas
that referenced
this issue
Aug 12, 2018
nmusolino
pushed a commit
to nmusolino/pandas
that referenced
this issue
Aug 12, 2018
4 tasks
jreback
pushed a commit
that referenced
this issue
Sep 15, 2018
aeltanawy
pushed a commit
to aeltanawy/pandas
that referenced
this issue
Sep 20, 2018
Sup3rGeo
pushed a commit
to Sup3rGeo/pandas
that referenced
this issue
Oct 1, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
DataFrame.xs() returns a value error if a non-unique multi-index is used and the
level
kwarg is called. However, if thelevel
karg is not called, or a tuple is passed the function behaves normally.Example output of various use cases
Working example 1
Working example 2
Working example 3
Value error
I would expect this to return the same as example 1 or 2
output of
pd.show_versions()
commit: None
python: 3.5.1.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
pandas: 0.18.1
nose: 1.3.7
pip: 8.1.1
setuptools: 20.3
Cython: 0.23.4
numpy: 1.10.4
scipy: 0.17.0
statsmodels: 0.6.1
xarray: None
IPython: 4.1.2
sphinx: 1.3.1
patsy: 0.4.0
dateutil: 2.5.1
pytz: 2016.2
blosc: None
bottleneck: 1.0.0
tables: 3.2.2
numexpr: 2.5
matplotlib: 1.5.1
openpyxl: 2.3.2
xlrd: 0.9.4
xlwt: 1.0.0
xlsxwriter: 0.8.4
lxml: 3.6.0
bs4: 4.4.1
html5lib: None
httplib2: None
apiclient: None
sqlalchemy: 1.0.12
pymysql: None
psycopg2: None
jinja2: 2.8
boto: 2.39.0
pandas_datareader: None
The text was updated successfully, but these errors were encountered: