Jing Zhan created SPARK-58971:
---------------------------------

             Summary: Add axis, pct and na_option parameter to Series.rank and 
DataFrame.rank
                 Key: SPARK-58971
                 URL: https://issues.apache.org/jira/browse/SPARK-58971
             Project: Spark
          Issue Type: Task
          Components: Pandas API on Spark
    Affects Versions: 4.2.1
            Reporter: Jing Zhan


SPARK-46167 tracked adding `axis`, `pct`, and `na_option` to `DataFrame.rank`. 
The `axis`parameter was implemented and the ticket was closed, but `pct` and 
`na_option` were never addressed.

`Series.rank()` also lacks `pct`, `na_option`, and `axis`. Since 
`DataFrame.rank` with `axis=0` delegates to `Series._rank()` internally, adding 
these parameters to `Series.rank()` is a natural extension that ensures API 
consistency — users should not have to switch from `Series` to `DataFrame` just 
to access ranking options that pandas supports on both.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to