-
Notifications
You must be signed in to change notification settings - Fork 3.8k
ARROW-3953: [Python] Compat with pandas 0.24 rename of MultiIndex labels -> codes #3120
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
ARROW-3953: [Python] Compat with pandas 0.24 rename of MultiIndex labels -> codes #3120
Conversation
I am not fully sure if I should add a test for this. The result of this patch is that there should be no warnings about the deprecation, so I could add an assert that there are no warnings in one of the tests? Is pandas master tested only in a nightly test build? Or also in travis? |
Codecov Report
@@ Coverage Diff @@
## master #3120 +/- ##
==========================================
- Coverage 87.09% 87.07% -0.02%
==========================================
Files 492 492
Lines 69160 69164 +4
==========================================
- Hits 60233 60226 -7
- Misses 8830 8837 +7
- Partials 97 101 +4
Continue to review full report at Codecov.
|
I think we have a docker-compose target for testing against pandas master. cc @kszucs |
These instructions for the pandas tests can be found at Lines 246 to 252 in 5704d8d
|
@jorisvandenbossche a test case would be nice (BTW the warning indeed disappears, tested with the docker-compose snippet above) |
Are the docker-compose / crossbow tests also run somewhere on CI, or are you supposed to run them locally? (if I add a test, it could only fail on pandas master, so it wouldn't be catched on travis I think?) |
@jorisvandenbossche You can make the test case dependent on pandas' version |
I'm not sure it's worth writing a test for this, TBH. |
Sorry, I will be mainly on holidays the comings weeks, so won't be able to add a test until after (I had some problems compiling yesterday I first need to solve). A test would be something like adding the following assert to one of the existing tests:
I think it can be nice to add it to make sure we don't introduce a usage of |
I would also be happy merging this without a test, @kszucs do you feel strongly about this and could add one? |
Not necessarily, but if |
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.
Thanks @jorisvandenbossche
…els -> codes Author: Joris Van den Bossche <[email protected]> Author: Krisztián Szűcs <[email protected]> Closes apache#3120 from jorisvandenbossche/pandas-multiindex-codes and squashes the following commits: e5442a5 <Krisztián Szűcs> test no warns 329f3e4 <Joris Van den Bossche> Compat with pandas 0.24 rename of MultiIndex labels -> codes
@kszucs Thanks for adding the test! |
You're welcome :) |
No description provided.