Github user HyukjinKwon commented on a diff in the pull request:
https://github.com/apache/spark/pull/20499#discussion_r166320786
--- Diff: python/pyspark/sql/dataframe.py ---
@@ -1532,7 +1532,7 @@ def fillna(self, value, subset=None):
return DataFrame(self._jdf.na().fill(value,
self._jseq(subset)), self.sql_ctx)
@since(1.4)
- def replace(self, to_replace, value=None, subset=None):
+ def replace(self, to_replace, *args, **kwargs):
--- End diff --
Yea, to me either way works to me. Let me try to look around this a bit
more and give a shot to show how it looks like.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]