Skip to content

Commit

Permalink
Add "return method"
Browse files Browse the repository at this point in the history
  • Loading branch information
ericmjl committed Jul 18, 2018
1 parent bb89234 commit 02e849c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pandas_flavor/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def print_column(df, col):
def inner(*args, **kwargs):

class AccessorMethod(object):


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

register_dataframe_accessor(method.__name__)(AccessorMethod)

return method

return inner()


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

register_series_accessor(method.__name__)(AccessorMethod)

return method

return inner()

0 comments on commit 02e849c

Please sign in to comment.