xinrong-databricks commented on a change in pull request #35868:
URL: https://github.com/apache/spark/pull/35868#discussion_r836650021
##########
File path: python/pyspark/pandas/frame.py
##########
@@ -10239,8 +10239,10 @@ def any(self, axis: Axis = 0) -> "Series":
return first_series(DataFrame(internal))
- # TODO: add axis, numeric_only, pct, na_option parameter
- def rank(self, method: str = "average", ascending: bool = True) ->
"DataFrame":
+ # TODO: add axis, pct, na_option parameter
+ def rank(
+ self, method: str = "average", ascending: bool = True, numeric_only:
Optional[bool] = None
Review comment:
Makes sense! Tests added.
##########
File path: python/pyspark/pandas/series.py
##########
@@ -3540,8 +3540,10 @@ def quantile(psser: Series) -> Column:
return self._reduce_for_stat_function(quantile, name="quantile")
- # TODO: add axis, numeric_only, pct, na_option parameter
- def rank(self, method: str = "average", ascending: bool = True) ->
"Series":
+ # TODO: add axis, pct, na_option parameter
+ def rank(
+ self, method: str = "average", ascending: bool = True, numeric_only:
Optional[bool] = None
Review comment:
Added.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]