Skip to content

Commit

Permalink
fix function signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Zsailer committed Feb 16, 2018
1 parent 245d4b0 commit e4369ca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pandas_flavor/register.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from functools import wraps
from .pandas_internals import (register_series_accessor,
register_dataframe_accessor)

Expand All @@ -18,11 +19,12 @@ def print_column(df, col):
def inner(*args, **kwargs):

class AccessorMethod(object):
__doc__ = method.__doc__


def __init__(self, pandas_obj):
self._obj = pandas_obj

@wraps(method)
def __call__(self, *args, **kwargs):
return method(self._obj, *args, **kwargs)

Expand All @@ -42,6 +44,7 @@ class AccessorMethod(object):
def __init__(self, pandas_obj):
self._obj = pandas_obj

@wraps(method)
def __call__(self, *args, **kwargs):
return method(self._obj, *args, **kwargs)

Expand Down

0 comments on commit e4369ca

Please sign in to comment.