8000 BUG: groupby.agg should always agg by rhshadrach · Pull Request #57706 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

BUG: groupby.agg should always agg #57706

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Prev Previous commit
pre-commit
  • Loading branch information
rhshadrach committed Mar 23, 2024
commit b6fed214f19e6d7c777ecbd187c91d6832a811b9
3 changes: 2 additions & 1 deletion pandas/tests/groupby/test_reductions.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_basic_aggregations(dtype):

# corner cases
result = grouped.aggregate(lambda x: x * 2)
expected = pd.Series(
expected = Series(
{
0: data[data.index // 3 == 0] * 2,
1: data[data.index // 3 == 1] * 2,
Expand All @@ -76,6 +76,7 @@ def test_basic_aggregations(dtype):
)
tm.assert_series_equal(result, expected)


@pytest.mark.parametrize(
"vals",
[
Expand Down
0