Skip to content

Commit ee251bc

Browse files
committed
remove extras from docs
1 parent 43bf6b5 commit ee251bc

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

janitor/functions/summarize.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ def summarize(
1717
by: Any = None,
1818
) -> pd.DataFrame:
1919
"""
20+
21+
!!! info "New in version 0.25.0"
22+
2023
Reduction operation on columns via a tuple.
2124
2225
It is a wrapper around `pd.DataFrame.agg`,
@@ -52,14 +55,15 @@ def summarize(
5255
>>> import pandas as pd
5356
>>> import numpy as np
5457
>>> import janitor as jn
55-
>>> pd.set_option("display.max_columns", None)
56-
>>> pd.set_option("display.expand_frame_repr", False)
57-
>>> pd.set_option("max_colwidth", None)
5858
>>> data = {'avg_jump': [3, 4, 1, 2, 3, 4],
5959
... 'avg_run': [3, 4, 1, 3, 2, 4],
6060
... 'avg_swim': [2, 1, 2, 2, 3, 4],
61-
... 'combine_id': [100200, 100200, 101200, 101200, 102201, 103202],
62-
... 'category': ['heats', 'heats', 'finals', 'finals', 'heats', 'finals']}
61+
... 'combine_id': [100200, 100200,
62+
... 101200, 101200,
63+
... 102201, 103202],
64+
... 'category': ['heats', 'heats',
65+
... 'finals', 'finals',
66+
... 'heats', 'finals']}
6367
>>> df = pd.DataFrame(data)
6468
>>> df.summarize(("avg_run", "mean"), by=['combine_id', 'category'])
6569
avg_run

janitor/functions/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,8 @@ class SD(NamedTuple):
621621
Subset of Data.
622622
Used in `mutate` and `summarize`
623623
for computation on multiple columns
624+
625+
!!! info "New in version 0.25.0"
624626
"""
625627

626628
columns: Any

0 commit comments

Comments
 (0)