Skip to content

Commit 347d4f7

Browse files
committed
add details for by parameter
1 parent 0c42031 commit 347d4f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

janitor/functions/summarize.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ def summarize(
4242
`janitor.SD` offers a more explicit form
4343
of passing tuples to the `summarize` function.
4444
45+
`by` accepts a label, labels, mapping or function.
46+
More arguments supported in `pd.DataFrame.groupby`
47+
can be passed to `by` via a dictionary.
48+
4549
4650
Example:
4751

0 commit comments

Comments
 (0)