Skip to content

Commit 8914bef

Browse files
Matt HagyMatt Hagy
authored andcommitted
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 48fc9d6 commit 8914bef

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
@@ -126,7 +126,7 @@ def f(self, **kwargs):
126126
result = result._convert(datetime=True)
127127
return result
128128

129-
f.__name__ = name
129+
f.__name__ = name
130130

131131
return f
132132

0 commit comments

Comments
 (0)