Skip to content

Commit

Permalink
TST: Make tests for groupby median/mean more strict on dtype (#44374)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshadrach committed Nov 11, 2021
1 parent 67d3543 commit 6e53e00
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions pandas/tests/groupby/test_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,7 @@ def test_median_empty_bins(observed):

result = df.groupby(bins, observed=observed).median()
expected = df.groupby(bins, observed=observed).agg(lambda x: x.median())
# TODO: GH 41137
tm.assert_frame_equal(result, expected, check_dtype=False)
tm.assert_frame_equal(result, expected)


@pytest.mark.parametrize(
Expand Down
2 changes: 0 additions & 2 deletions pandas/tests/resample/test_datetime_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -1692,8 +1692,6 @@ def f(data, add_arg):
df = DataFrame({"A": 1, "B": 2}, index=date_range("2017", periods=10))
result = df.groupby("A").resample("D").agg(f, multiplier).astype(float)
expected = df.groupby("A").resample("D").mean().multiply(multiplier)
# TODO: GH 41137
expected = expected.astype("float64")
tm.assert_frame_equal(result, expected)


Expand Down

0 comments on commit 6e53e00

Please sign in to comment.