-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Slicing columns with mixed types <str>,<int> fails with ValueError #20975 #38717
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
Conversation
pandas/tests/indexing/test_loc.py
Outdated
expected = DataFrame( | ||
data=[[2, 3]], index=[0], columns=pd.Index([1, 2], dtype=object) | ||
) | ||
tm.assert_equal(df.loc[:, 1:], expected) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does assert_frame_equal
work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes that works and modification made accordingly. Thanks!
I saw only the travis-ci check failed but when going through its log I couldn't identify the cause. Any suggestions will be appreciated! |
thanks @hungyiwu |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff