-
Notifications
You must be signed in to change notification settings - Fork 915
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
Concatenate dictionary of objects along axis=1 #15160
Conversation
/ok to test |
/ok to test |
/ok to test |
/ok to test |
/ok to test |
Thanks @amanlai - I pushed a couple of quick changes to your branch, which simply make it so that we access the The latter can be surprisingly expensive in cuDF and therefore we forbid its use within the code base. Fingers crossed that we will now pass all tests 🤞 after which I think this should be good to go! |
@amanlai - after getting rid of the errors from using
Do you want to debug and fix those up? If you're having trouble, let us know and we're glad to help! |
…e object (pulled unnecessary changes in previous commit)
@shwina I did push some changes to reshape.py that should fix those issues. I also refactored it a bit so that concatenation of a dictionary that includes both Series and DF works as well and added a test case for that in test_concat.py as well. |
/ok to test |
Hmm, with the latest changes we're seeing a ton of new failures:
Are you able to run the tests locally to debug? It may be helpful to ensure that you have all tests passing locally, rather than waiting on CI runs to report the results. Typically, I do something like:
|
@shwina I had tested them locally and the test cases were all working fine. However, I don't know why but some files were modified (by my system?) and when I pushed the changes I screwed up and did |
No worries at all, and no need to apologize! Can you tell me what the changes we should keep since the commit before last? |
@shwina I have no idea why so many tests are failing. I checked on my end and there are no errors. I feel like I have spent enough time on this PR. I want to let somebody else take a crack at it. Sorry that I wasted so much of your time. Cheers. |
Note: This work is heavily based off [amanlai's](https://github.com/amanlai) PR [raised here](#15160), wasn't able to base my branch off amanlai's due to deleted branch. > Closes #15115. >Unlike `pandas.concat`, `cudf.concat` doesn't work with a dictionary of objects. The following code raises an error. ```python d = { 'first': cudf.DataFrame({'A': [1, 2], 'B': [3, 4]}), 'second': cudf.DataFrame({'A': [5, 6], 'B': [7, 8]}), } cudf.concat(d, axis=1) ``` >This commit resolves this issue. Authors: - https://github.com/er-eis - Lawrence Mitchell (https://github.com/wence-) Approvers: - Lawrence Mitchell (https://github.com/wence-) - Bradley Dice (https://github.com/bdice) URL: #15623
Closes #15115.
Unlike
pandas.concat
,cudf.concat
doesn't work with a dictionary of objects. The following code raises an error.This commit resolves this issue.
Checklist