Skip to content

Commit 4b9955c

Browse files
authored
Merge pull request #4 from ericmjl/return_fix
Add "return method"
2 parents bb89234 + 02e849c commit 4b9955c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pandas_flavor/register.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def print_column(df, col):
1919
def inner(*args, **kwargs):
2020

2121
class AccessorMethod(object):
22-
22+
2323

2424
def __init__(self, pandas_obj):
2525
self._obj = pandas_obj
@@ -30,6 +30,8 @@ def __call__(self, *args, **kwargs):
3030

3131
register_dataframe_accessor(method.__name__)(AccessorMethod)
3232

33+
return method
34+
3335
return inner()
3436

3537

@@ -50,4 +52,6 @@ def __call__(self, *args, **kwargs):
5052

5153
register_series_accessor(method.__name__)(AccessorMethod)
5254

55+
return method
56+
5357
return inner()

0 commit comments

Comments
 (0)