Uh oh!
There was an error while loading. Please reload this page.
[SPARK-22797][PySpark] Bucketizer support multi-column - #19892
[SPARK-22797][PySpark] Bucketizer support multi-column#19892zhengruifeng wants to merge 11 commits into
Conversation
SparkQA
commented
Dec 5, 2017
Test build #84478 has finished for PR 19892 at commit
|
SparkQA
commented
Dec 5, 2017
Test build #84479 has finished for PR 19892 at commit
|
SparkQA
commented
Dec 5, 2017
Test build #84480 has finished for PR 19892 at commit
|
zhengruifeng
commented
Dec 6, 2017
This PR is currently blocked by #19894 (comment) |
zhengruifeng
commented
Dec 14, 2017
retest this please |
SparkQA
commented
Dec 14, 2017
Test build #84898 has finished for PR 19892 at commit
|
zhengruifeng
commented
Dec 14, 2017
retest this please |
SparkQA
commented
Dec 14, 2017
Test build #84900 has finished for PR 19892 at commit
|
zhengruifeng
commented
Dec 14, 2017
ping @holdenk , can you help reviewing this? |
There was a problem hiding this comment.
toListFloat requires each list entry is a numeric (TypeConverters._is_numeric). Should toListListFloat have such requirement?
viirya
commented
Dec 18, 2017
This needs an individual JIRA. @MLnick created SPARK-22797 for this. Please use it. |
zhengruifeng
commented
Dec 19, 2017
@viirya Thanks a lot for reviewing this! I will update the title to use the new ticket. |
SparkQA
commented
Dec 19, 2017
Test build #85087 has finished for PR 19892 at commit
|
There was a problem hiding this comment.
Note: there is a work to change this behavior to throw an exception, instead of a log warning. We should change this document later.
There was a problem hiding this comment.
@holdenk@zhengruifeng this comment will need to be changed as per #19993 - but that has not been merged yet. I think #19993 will block 2.3 though, so we could preemptively change the doc here to match the Scala side in #19993 about throwing an exception.
viirya
commented
Dec 19, 2017
One minor comment, otherwise LGTM. |
zhengruifeng
commented
Dec 29, 2017
ping @MLnick ? |
SparkQA
commented
Jan 12, 2018
Test build #86009 has finished for PR 19892 at commit
|
There was a problem hiding this comment.
Perhaps it would be cleaner to do a df.show() here? Likewise above for bucketed we could change that part of the doctest too.
There was a problem hiding this comment.
We need a test case in ParamTypeConversionTests for this new method; see test_list_float for reference.
SparkQA
commented
Jan 16, 2018
Test build #86168 has finished for PR 19892 at commit
|
SparkQA
commented
Jan 16, 2018
Test build #86169 has finished for PR 19892 at commit
|
zhengruifeng
commented
Jan 16, 2018
@MLnick Thanks for your reviewing and suggestions. I have updated this PR |
MLnick
left a comment
There was a problem hiding this comment.
One minor comment on the updated doctest.
I don't think this will make it into 2.3 given the code freeze and branch has been cut already. In which case we will need to change the @since tags.
Pending the error throwing PR for Scala Bucketizer, we can update the doc here.
| >>> bucketed[3].buckets | ||
| 2.0 | ||
| ... inputCol="values1", outputCol="buckets") | ||
| >>> bucketed = bucketizer.setHandleInvalid("keep").transform(df) |
There was a problem hiding this comment.
It may actually be neater to show only values1 and bucketed - so perhaps .transform(df.select('values1'))?
SparkQA
commented
Jan 16, 2018
Test build #86170 has finished for PR 19892 at commit
|
holdenk
commented
Jan 19, 2018
I mean I think it might have a chance, generally speaking we've allowed outstanding PRs to be merged after the freeze. Since there are outstanding blockers on the branch preventing us from cutting RC2 maybe its ok to move forward if we can do it quickly? Of course I defer to MLNick :) |
MLnick
commented
Jan 19, 2018
via email
I’m generally ok with these small python api wrapper additions getting
merged as long as the risk of breaking anything is low - and here it is
since it’s just api parity …On Fri, 19 Jan 2018 at 06:08, Holden Karau ***@***.***> wrote:
I mean I think it might have a chance, generally speaking we've allowed
outstanding PRs to be merged after the freeze. Since there are outstanding
blockers on the branch preventing us from cutting RC2 maybe its ok to move
forward if we can do it quickly? Of course I defer to MLNick :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19892 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA_SBy2cr5MUJ9rN7egqwHf9GCLH0tCiks5tMBVSgaJpZM4Q2CRd>
.
|
MLnick
commented
Jan 22, 2018
If it is going to get merged to |
SparkQA
commented
Jan 22, 2018
Test build #86464 has finished for PR 19892 at commit
|
holdenk
commented
Jan 22, 2018
@MLnick you ok with this then? |
@holdenk everything except my comment in #19892 (comment). I'd propose to just preemptively update the doc about an exception being thrown. |
SparkQA
commented
Jan 23, 2018
Test build #86519 has finished for PR 19892 at commit
|
MLnick
commented
Jan 23, 2018
RC2 has been cut - @jkbradley do you see #19993 as a blocker? I think it should be merged for |
MLnick
commented
Jan 26, 2018
Merged to master / branch-2.3. Thanks! |
## What changes were proposed in this pull request? Bucketizer support multi-column in the python side ## How was this patch tested? existing tests and added tests Author: Zheng RuiFeng <ruifengz@foxmail.com> Closes#19892 from zhengruifeng/20542_py. (cherry picked from commit c22eaa9) Signed-off-by: Nick Pentreath <nickp@za.ibm.com>
MLnick
commented
Jan 26, 2018
I reverted this (see #20410 for details) - we can re-open it once that issue is solved. |
viirya
commented
Apr 19, 2018
Can this be re-open now? |
sherrysk8r
commented
Sep 9, 2019
Has there been any update on re-opening this? And also adding multiple column support to QuantileDiscretizer? |
zhengruifeng
commented
Sep 16, 2019
I am sorry, I am afread I can not re-open this PR beacuse I deleted it by mistake. |
What changes were proposed in this pull request?
Bucketizer support multi-column in the python side
How was this patch tested?
existing tests and added tests