Skip to content

Commit fbe68ad

Browse files
committed
update Appender to doc in resample.py
1 parent 99d7f6e commit fbe68ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/resample.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from pandas._libs.tslibs.period import IncompatibleFrequency
1212
from pandas.compat.numpy import function as nv
1313
from pandas.errors import AbstractMethodError
14-
from pandas.util._decorators import Appender, Substitution
14+
from pandas.util._decorators import Appender, Substitution, doc
1515

1616
from pandas.core.dtypes.generic import ABCDataFrame, ABCSeries
1717

@@ -858,7 +858,7 @@ def var(self, ddof=1, *args, **kwargs):
858858
nv.validate_resampler_func("var", args, kwargs)
859859
return self._downsample("var", ddof=ddof)
860860

861-
@Appender(GroupBy.size.__doc__)
861+
@doc(GroupBy.size)
862862
def size(self):
863863
result = self._downsample("size")
864864
if not len(self.ax):
@@ -871,7 +871,7 @@ def size(self):
871871
result = Series([], index=result.index, dtype="int64", name=name)
872872
return result
873873

874-
@Appender(GroupBy.count.__doc__)
874+
@doc(GroupBy.count)
875875
def count(self):
876876
result = self._downsample("count")
877877
if not len(self.ax):

0 commit comments

Comments
 (0)