Skip to content

Commit d466105

Browse files
author
Matt Hagy
committed
Test for consistency of attribute and method names
Commented out and marked with a TODO since some are currently inconsistent and not immediately obvious how to fix all of them.
1 parent 7d0893a commit d466105

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/test_groupby.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5990,7 +5990,9 @@ def test_groupby_whitelist(self):
59905990
gb = obj.groupby(df.letters)
59915991
self.assertEqual(whitelist, gb._apply_whitelist)
59925992
for m in whitelist:
5993-
getattr(type(gb), m)
5993+
f = getattr(type(gb), m)
5994+
# TODO: Fix inconsistencies between attribute and method names
5995+
# self.assertEqual(f.__name__, m)
59945996

59955997
AGG_FUNCTIONS = ['sum', 'prod', 'min', 'max', 'median', 'mean', 'skew',
59965998
'mad', 'std', 'var', 'sem']

0 commit comments

Comments
 (0)