Skip to content

Commit 32a3893

Browse files
author
samuel.oranyeli
committed
add doc for scalar
1 parent 614821d commit 32a3893

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

janitor/functions/summarize.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def summarize(
7575
7676
Summarize with a new column name:
7777
78-
>>> df.summarize({"avg_run_2":lambda df: df.avg_run.mean()})
78+
>>> df.summarize({"avg_run_2":df.avg_run.mean()})
7979
avg_run_2
8080
0 2.833333
8181
>>> df.summarize({"avg_run_2":lambda f: f.avg_run.mean()}, by=['combine_id', 'category'])

0 commit comments

Comments
 (0)