Skip to content

Commit c4921c1

Browse files
committed
added comments to test funcs
1 parent fe36303 commit c4921c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tests/reshape/test_pivot.py

+2
Original file line numberDiff line numberDiff line change
@@ -1111,6 +1111,7 @@ def test_pivot_margins_name_unicode(self):
11111111

11121112
def test_pivot_string_as_func(self):
11131113
# GH #18713
1114+
# for correctness purposes
11141115
data = DataFrame({'A': ['foo', 'foo', 'foo', 'foo', 'bar', 'bar',
11151116
'bar', 'bar', 'foo', 'foo', 'foo'],
11161117
'B': ['one', 'one', 'one', 'two', 'one', 'one',
@@ -1146,6 +1147,7 @@ def test_pivot_string_as_func(self):
11461147
@pytest.mark.parametrize("f, f_numpy", funcs)
11471148
def test_pivot_string_func_vs_func(self, f, f_numpy):
11481149
# GH #18713
1150+
# for consistency purposes
11491151
result = pivot_table(self.data, index='A', columns='B', aggfunc=f)
11501152
expected = pivot_table(self.data, index='A', columns='B',
11511153
aggfunc=f_numpy)

0 commit comments

Comments
 (0)