We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 245d4b0 commit e4369caCopy full SHA for e4369ca
pandas_flavor/register.py
@@ -1,3 +1,4 @@
1
+from functools import wraps
2
from .pandas_internals import (register_series_accessor,
3
register_dataframe_accessor)
4
@@ -18,11 +19,12 @@ def print_column(df, col):
18
19
def inner(*args, **kwargs):
20
21
class AccessorMethod(object):
- __doc__ = method.__doc__
22
+
23
24
def __init__(self, pandas_obj):
25
self._obj = pandas_obj
26
27
+ @wraps(method)
28
def __call__(self, *args, **kwargs):
29
return method(self._obj, *args, **kwargs)
30
@@ -42,6 +44,7 @@ class AccessorMethod(object):
42
44
43
45
46
47
48
49
50
0 commit comments