We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b497384 commit 754336eCopy full SHA for 754336e
pandas/core/groupby/base.py
@@ -126,9 +126,7 @@ class where members are defined.
126
property_wrapper_template = \
127
"""@property
128
def %(name)s(self) :
129
- \"""
130
- %(doc)s
131
+ \"""%(doc)s\"""
132
return self.__getattr__('%(name)s')"""
133
134
for name in whitelist:
@@ -139,7 +137,7 @@ def %(name)s(self) :
139
137
# ugly, but we need the name string itself in the method.
140
138
f = getattr(klass, name)
141
doc = f.__doc__
142
- doc = doc.strip() if type(doc) == str else ''
+ doc = doc if type(doc) == str else ''
143
if isinstance(f, types.MethodType):
144
wrapper_template = method_wrapper_template
145
decl, args = make_signature(f)
0 commit comments