Skip to content

Commit 68ca21d

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 f3d880d commit 68ca21d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pandas/tests/groupby/test_groupby.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5217,7 +5217,9 @@ def test_groupby_whitelist(self):
52175217
gb = obj.groupby(df.letters)
52185218
self.assertEqual(whitelist, gb._apply_whitelist)
52195219
for m in whitelist:
5220-
getattr(type(gb), m)
5220+
f = getattr(type(gb), m)
5221+
# TODO: Fix inconsistencies between attribute and method names
5222+
# self.assertEqual(f.__name__, m)
52215223

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

0 commit comments

Comments
 (0)