Yikun commented on a change in pull request #35868:
URL: https://github.com/apache/spark/pull/35868#discussion_r830846927



##########
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:
       
https://github.com/pandas-dev/pandas/blob/6033ed4b3383d874ee4a8a461724c0b8c2ca968d/pandas/core/generic.py#L8651-L8660
   
   Consider rank=`None` would be deprecated in future in pandas, we might want 
to add a test on this (set `rank=None` expilictly, I know even it's None by 
unset default), to make sure protect some behavior in future.




-- 
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]

Reply via email to