@@ -11847,14 +11847,44 @@ def last_valid_index(self) -> Hashable:
11847
11847
where N represents the number of elements.
11848
11848
numeric_only : bool, default False
11849
11849
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.
11850
11853
11851
11854
Returns
11852
11855
-------
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}\
11854
11862
{notes}\
11855
11863
{examples}
11856
11864
"""
11857
11865
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
+
11858
11888
_std_notes = """
11859
11889
11860
11890
Notes
@@ -12706,8 +12736,8 @@ def make_doc(name: str, ndim: int) -> str:
12706
12736
"ddof argument."
12707
12737
)
12708
12738
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 }
12711
12741
12712
12742
elif name == "sem" :
12713
12743
base_doc = _num_ddof_doc
@@ -12751,8 +12781,8 @@ def make_doc(name: str, ndim: int) -> str:
12751
12781
>>> df.sem(numeric_only=True)
12752
12782
a 0.5
12753
12783
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 }
12756
12786
12757
12787
elif name == "skew" :
12758
12788
base_doc = _num_doc
0 commit comments