Skip to content

Commit 30fdd7d

Browse files
committed
Fix for groupby.apply(lambda: )...
1 parent 503dd56 commit 30fdd7d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/user_guide/case_studies/football.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ Using this dataframe we will now provide answers for miscellaneous questions. I
9999
.. ipython:: python
100100
101101
CvsL.groupby("half").apply(
102-
lambda df: df.query("score_liverpool - score_chelsea == 1").index.length.sum()
102+
lambda df: df.query("score_liverpool - score_chelsea == 1").index.length.sum(),
103+
include_groups=False,
103104
)
104105
105106
**What was the score at the 80 minute mark?**

docs/user_guide/case_studies/maintenance.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ where the values are instances of :class:`pandas.arrays.IntervalArray`.
5454
df["end"],
5555
closed="left",
5656
),
57+
include_groups=False,
5758
)
5859
)
5960
maintenance

0 commit comments

Comments
 (0)