Skip to content

Commit 8b166ff

Browse files
author
Matt Hagy
authored
Fix indent level bug preventing wrapper function rename
Original code intends to rename the wrapper function f using the provided name, but this isn't happening because code is incorrectly indented an extra level. Example: >>> from pandas.core.groupby import GroupBy >>> GroupBy.sum.__name__ 'f' Should be 'sum'.
1 parent 2e276fb commit 8b166ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def f(self):
120120
result = result._convert(datetime=True)
121121
return result
122122

123-
f.__name__ = name
123+
f.__name__ = name
124124

125125
return f
126126

0 commit comments

Comments
 (0)