Repository navigation
Replaced concat_horizontal with concat - #1334
Conversation
replaced `skrub.concat_horizontal` with `skrub.concat` to use vertical or horizontal concatenation where setting the axis would copy the behavior of `pd.concat`
added tests for vertical concatenation and updated docstrings
- added tests for axis not defined - updated changes.rst
Vincent-Maladiere
left a comment
There was a problem hiding this comment.
Hello @pvprajwal, thank you for this PR! Here are a couple of remarks
Co-authored-by: Vincent M <maladiere.vincent@yahoo.fr>
Co-authored-by: Vincent M <maladiere.vincent@yahoo.fr>
Co-authored-by: Vincent M <maladiere.vincent@yahoo.fr>
Co-authored-by: Vincent M <maladiere.vincent@yahoo.fr>
Co-authored-by: Vincent M <maladiere.vincent@yahoo.fr>
Co-authored-by: Vincent M <maladiere.vincent@yahoo.fr>
Co-authored-by: Vincent M <maladiere.vincent@yahoo.fr>
concatenating vertically now ignores the original indexes
|
Thanks a lot for working on this @pvprajwal and welcome to skrub 🎉 ! this is great, you took on a challenging issue for your first contribution and the result is looking good! I agree with @Vincent-Maladiere 's point that we should not support |
|
Thanks so much @jeromedockes ! I am glad to be part of the skrub community. I appreciate the feedback from you and @Vincent-Maladiere . Regarding |
|
It's our pleasure @pvprajwal, thank you for contributing! If we don't support |
|
let's go with just axis=0 or axis=1 for now, it's easier to add stuff later than to remove it |
|
Alright, I'll update the code. |
the axis parameter in concat now takes only 0/1 values.
jeromedockes
left a comment
There was a problem hiding this comment.
Thank you very much @pvprajwal !! super useful
Vincent-Maladiere
left a comment
There was a problem hiding this comment.
Looks good! Thanks @pvprajwal :)
|
Merging after the conflict have been sorted out |
|
conflicts resolved @Vincent-Maladiere . |
|
Thanks a lot, @pvprajwal ! Much appreciated! |
Fixes #1330
Replaced
concat_horizontalwithconcat. The axis parameter can be used to specify whether to concatenate horizontally or vertically.axis=1 or axis='columns' can be used for horizontal
axis=0 or axis='index' can be used for horizontal