@@ -11847,14 +11847,44 @@ def last_valid_index(self) -> Hashable:
1184711847 where N represents the number of elements.
1184811848numeric_only : bool, default False
1184911849 Include only float, int, boolean columns. Not implemented for Series.
11850+ **kwargs :
11851+ Additional keywords have no effect but might be accepted
11852+ for compatibility with NumPy.
1185011853
1185111854Returns
1185211855-------
11853- {name1} or {name2} (if level specified) \
11856+ {name1} or {name2} (if level specified)
11857+ {return_desc}
11858+
11859+ See Also
11860+ --------
11861+ {see_also}\
1185411862 {notes}\
1185511863 {examples}
1185611864"""
1185711865
11866+ _sem_see_also = """\
11867+ scipy.stats.sem : Compute standard error of the mean.
11868+ {name2}.std : Return sample standard deviation over requested axis.
11869+ {name2}.var : Return unbiased variance over requested axis.
11870+ {name2}.mean : Return the mean of the values over the requested axis.
11871+ {name2}.median : Return the median of the values over the requested axis.
11872+ {name2}.mode : Return the mode(s) of the Series."""
11873+
11874+ _sem_return_desc = """\
11875+ Unbiased standard error of the mean over requested axis."""
11876+
11877+ _std_see_also = """\
11878+ numpy.std : Compute the standard deviation along the specified axis.
11879+ {name2}.var : Return unbiased variance over requested axis.
11880+ {name2}.sem : Return unbiased standard error of the mean over requested axis.
11881+ {name2}.mean : Return the mean of the values over the requested axis.
11882+ {name2}.median : Return the median of the values over the requested axis.
11883+ {name2}.mode : Return the mode(s) of the Series."""
11884+
11885+ _std_return_desc = """\
11886+ Standard deviation over requested axis."""
11887+
1185811888_std_notes = """
1185911889
1186011890Notes
@@ -12706,8 +12736,8 @@ def make_doc(name: str, ndim: int) -> str:
1270612736 "ddof argument."
1270712737 )
1270812738 examples = _std_examples
12709- see_also = ""
12710- kwargs = {"notes" : _std_notes }
12739+ see_also = _std_see_also . format ( name2 = name2 )
12740+ kwargs = {"notes" : "" , "return_desc" : _std_return_desc }
1271112741
1271212742 elif name == "sem" :
1271312743 base_doc = _num_ddof_doc
@@ -12751,8 +12781,8 @@ def make_doc(name: str, ndim: int) -> str:
1275112781 >>> df.sem(numeric_only=True)
1275212782 a 0.5
1275312783 dtype: float64"""
12754- see_also = ""
12755- kwargs = {"notes" : "" }
12784+ see_also = _sem_see_also . format ( name2 = name2 )
12785+ kwargs = {"notes" : "" , "return_desc" : _sem_return_desc }
1275612786
1275712787 elif name == "skew" :
1275812788 base_doc = _num_doc
0 commit comments