Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshadrach committed May 12, 2024
1 parent be2c977 commit 9d24903
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
7 changes: 6 additions & 1 deletion pandas/tests/groupby/methods/test_quantile.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,12 @@ def test_quantile_missing_group_values_no_segfaults():
([1.0, np.nan, 2.0, 2.0], range(4), [1.0, 2.0], [0.0, 2.5]),
(["a", "b", "b", np.nan], range(4), ["a", "b"], [0, 1.5]),
([0], [42], [0], [42.0]),
([], np.array([], dtype="float64"), [], np.array([], dtype="float64")),
(
np.array([], dtype="float64"),
np.array([], dtype="float64"),
np.array([], dtype="float64"),
np.array([], dtype="float64"),
),
],
)
def test_quantile_missing_group_values_correct_results(
Expand Down
15 changes: 3 additions & 12 deletions pandas/tests/groupby/test_grouping.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,18 +737,9 @@ def test_list_grouper_with_nat(self):
@pytest.mark.parametrize(
"func,expected",
[
(
"transform",
Series(name=2),
),
(
"agg",
Series(name=2, index=Index([], name=1)),
),
(
"apply",
Series(name=2, index=Index([], name=1)),
),
("transform", Series(name=2)),
("agg", Series(name=2, index=Index([], name=1))),
("apply", Series(name=2, index=Index([], name=1))),
],
)
def test_evaluate_with_empty_groups(self, func, expected):
Expand Down

0 comments on commit 9d24903

Please sign in to comment.