Skip to content

Commit

Permalink
TST: Make tests for groupby median/mean more strict on dtype (pandas-…
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshadrach authored and nickleus27 committed Nov 28, 2021
1 parent b0c1671 commit 5694f78
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 5694f78

Please sign in to comment.