rank() on a Series of just 1 null assigns rank=1 to the null value. #18243
Labels
accepted
Ready for implementation
bug
Something isn't working
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Output:
Log output
No response
Issue description
Ranks of series
[null]
should not be[1.0]
but[null]
, because the rank ofnull
should benull
.This only happens with series of just 1
null
. Ranking series with 0 or more than 1null
gives correct results.This issue is a generalization of #17570
Expected behavior
Output:
Installed versions
The text was updated successfully, but these errors were encountered: