Skip to content

Commit

Permalink
applied patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lautenschlaeger authored and thlautenschlaeger committed Nov 26, 2022
1 parent a4e7c1a commit 435347f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pandas/tests/apply/test_frame_apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,7 @@ def test_with_dictlike_functions():
# GH 49352

df = DataFrame({"a": [1, 2, 3], "b": list("abc"), "c": [3, 4, 5]})
functions = {"b": "mean", "a": "std", "c": [DataFrame.mean, "sum"]}
functions = {"a": "std", "c": ["mean", "sum"]}
result = df.agg(functions, numeric_only=True)
expected = DataFrame(
index=["std", "mean", "sum"],
Expand Down Expand Up @@ -907,7 +907,7 @@ def test_with_listlike_functions():
# GH 49352

df = DataFrame({"a": [1, 2, 3], "b": list("abc"), "c": [3, 4, 5]})
functions = [DataFrame.mean, "std"]
functions = ["mean", "std"]
result = df.agg(functions, numeric_only=True)
expected = DataFrame(index=["mean", "std"], data={"a": [2.0, 1.0], "c": [4.0, 1.0]})
tm.assert_frame_equal(result, expected)
Expand Down

0 comments on commit 435347f

Please sign in to comment.