File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,15 @@ def summarize(
20
20
21
21
!!! info "New in version 0.25.0"
22
22
23
+ !!!note
24
+
25
+ Before reaching for `summarize`, try `pd.DataFrame.agg`.
26
+
23
27
Reduction operation on columns via a tuple.
24
28
25
29
It is a wrapper around `pd.DataFrame.agg`,
26
30
with added flexibility for multiple columns.
27
31
28
- Before reaching for `summarize`, try `pd.DataFrame.agg`.
29
-
30
32
The argument should be of the form `(columns, func, names_glue)`;
31
33
the `names_glue` argument is optional.
32
34
`columns` can be selected with the
@@ -35,6 +37,7 @@ def summarize(
35
37
The function `func` should be a string
36
38
(which is dispatched to `pd.Series.agg`),
37
39
or a callable, or a list/tuple of strings/callables.
40
+ The function is called on each column in `columns`.
38
41
39
42
The `names_glue` argument allows for renaming, especially for
40
43
multiple columns or multiple functions.
You can’t perform that action at this time.
0 commit comments