diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 3bb584d4d34e8..b809bc1a1c496 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -9960,7 +9960,7 @@ def _add_numeric_operations(cls): see_also="", examples="", ) - @Appender(_num_doc) + @Appender(_num_doc_mad) def mad(self, axis=None, skipna=None, level=None): if skipna is None: skipna = True @@ -10329,6 +10329,26 @@ def _doc_parms(cls): %(examples)s """ +_num_doc_mad = """ +%(desc)s + +Parameters +---------- +axis : %(axis_descr)s + Axis for the function to be applied on. +skipna : bool, default None + Exclude NA/null values when computing the result. +level : int or level name, default None + If the axis is a MultiIndex (hierarchical), count along a + particular level, collapsing into a %(name1)s. + +Returns +------- +%(name1)s or %(name2)s (if level specified)\ +%(see_also)s\ +%(examples)s +""" + _num_ddof_doc = """ %(desc)s