Skip to content

Commit 435347f

Browse files
Thomas Lautenschlaegerthlautenschlaeger
Thomas Lautenschlaeger
authored andcommitted
applied patch
1 parent a4e7c1a commit 435347f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/apply/test_frame_apply.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ def test_with_dictlike_functions():
862862
# GH 49352
863863

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

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

0 commit comments

Comments
 (0)