@@ -9562,17 +9562,8 @@ def _gotitem(
9562
9562
# TODO: _shallow_copy(subset)?
9563
9563
return subset [key ]
9564
9564
9565
- _agg_summary_and_see_also_doc = dedent (
9565
+ _agg_see_also_doc = dedent (
9566
9566
"""
9567
- The aggregation operations are always performed over an axis, either the
9568
- index (default) or the column axis. This behavior is different from
9569
- `numpy` aggregation functions (`mean`, `median`, `prod`, `sum`, `std`,
9570
- `var`), where the default is to compute the aggregation of the flattened
9571
- array, e.g., ``numpy.mean(arr_2d)`` as opposed to
9572
- ``numpy.mean(arr_2d, axis=0)``.
9573
-
9574
- `agg` is an alias for `aggregate`. Use the alias.
9575
-
9576
9567
See Also
9577
9568
--------
9578
9569
DataFrame.apply : Perform any type of operations.
@@ -9635,7 +9626,7 @@ def _gotitem(
9635
9626
_shared_docs ["aggregate" ],
9636
9627
klass = _shared_doc_kwargs ["klass" ],
9637
9628
axis = _shared_doc_kwargs ["axis" ],
9638
- see_also = _agg_summary_and_see_also_doc ,
9629
+ see_also = _agg_see_also_doc ,
9639
9630
examples = _agg_examples_doc ,
9640
9631
)
9641
9632
def aggregate (self , func = None , axis : Axis = 0 , * args , ** kwargs ):
0 commit comments