Skip to content

Commit

Permalink
float(nan) -> None
Browse files Browse the repository at this point in the history
  • Loading branch information
FBruzzesi committed Jan 2, 2025
1 parent 54c4a81 commit b68f575
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/expr_and_series/rank_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
data_float = {"a": [3.1, 6.1, 1.5, 1.5, None, 6.1], "b": [1, 1, 2, 1, 2, 2]}

expected = {
"average": [3.0, 4.5, 1.5, 1.5, float("nan"), 4.5],
"min": [3, 4, 1, 1, float("nan"), 4],
"max": [3, 5, 2, 2, float("nan"), 5],
"dense": [2, 3, 1, 1, float("nan"), 3],
"ordinal": [3, 4, 1, 2, float("nan"), 5],
"average": [3.0, 4.5, 1.5, 1.5, None, 4.5],
"min": [3, 4, 1, 1, None, 4],
"max": [3, 5, 2, 2, None, 5],
"dense": [2, 3, 1, 1, None, 3],
"ordinal": [3, 4, 1, 2, None, 5],
}

expected_over = {
"average": [2.0, 3.0, 1.0, 1.0, float("nan"), 2.0],
"min": [2, 3, 1, 1, float("nan"), 2],
"max": [2, 3, 1, 1, float("nan"), 2],
"dense": [2, 3, 1, 1, float("nan"), 2],
"ordinal": [2, 3, 1, 1, float("nan"), 2],
"average": [2.0, 3.0, 1.0, 1.0, None, 2.0],
"min": [2, 3, 1, 1, None, 2],
"max": [2, 3, 1, 1, None, 2],
"dense": [2, 3, 1, 1, None, 2],
"ordinal": [2, 3, 1, 1, None, 2],
}


Expand Down

0 comments on commit b68f575

Please sign in to comment.