-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-21658][SQL][PYSPARK] Add default None for value in na.replace in PySpark #18895
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
|
Could we add the example in the doctest (under 1362L) so that this can be tested and shown in the documentation? |
|
ok to test |
|
Test build #80469 has finished for PR 18895 at commit
|
|
@byakuinss Please add a doc test in |
|
Test build #80490 has finished for PR 18895 at commit
|
|
Test build #80530 has finished for PR 18895 at commit
|
HyukjinKwon
left a comment
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.
I think it is close to get merged. Would you address the comments @byakuinss ?
python/pyspark/sql/dataframe.py
Outdated
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.
looks trailing white spaces should be removed. Could we remove these?
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 for your reminding! I'll remove them.
python/pyspark/sql/dataframe.py
Outdated
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.
I think it is okay to leave this line as was.
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.
Got it, I'll change them back.
|
Test build #80632 has finished for PR 18895 at commit
|
|
LGTM |
|
Test build #80633 has finished for PR 18895 at commit
|
|
LGTM too. |
|
Merged to master. |
|
@byakuinss, BTW, do you mind if I ask your JIRA id? I want to assign this to you as you resolved this but I can't find the ID.. |
|
@HyukjinKwon |
|
Hm.. weird. I can't search your account on JIRA ... |
|
Can you maybe leave any comment saying.. like .. "here is my JIRA account." in https://issues.apache.org/jira/browse/SPARK-21658 if you don't mind? |
|
Okay, I leave a comment in the issue page. |
|
Thanks! @HyukjinKwon |
|
Guys, I am sorry but I think I have to revert this by few explicit objections, for now. Please join in the discussion about the original implementation details in #16793. Thanks. |
What changes were proposed in this pull request?
JIRA issue: https://issues.apache.org/jira/browse/SPARK-21658
Add default None for value in
na.replacesinceDataframe.replaceandDataframeNaFunctions.replaceare alias.The default values are the same now.
How was this patch tested?
Existing tests.
cc @viirya