Skip to content

Commit a492b5a

Browse files
Matt Hagyjreback
Matt 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 ec84ae3 commit a492b5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/groupby.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ def f(self, **kwargs):
194194
result = result._convert(datetime=True)
195195
return result
196196

197-
f.__name__ = name
197+
f.__name__ = name
198198

199199
return f
200200

0 commit comments

Comments
 (0)