Skip to content

Commit

Permalink
Fix deprecations in docs (#60)
Browse files Browse the repository at this point in the history
* docs requirements update

* fix for groupby.apply(lambda ...) deprecation warning

---------

Co-authored-by: staircase-dev <[email protected]>
  • Loading branch information
venaturum and staircase-dev committed Jun 25, 2024
1 parent a12ec94 commit 2cd73f5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/general_requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ipykernel
sphinx
sphinx >= 5
nbsphinx
sphinx-panels
staircase >= 2.1
Expand All @@ -9,3 +9,4 @@ Pygments
pydata-sphinx-theme
toml
numpydoc
matplotlib >= 3.7
Binary file modified docs/requirements.txt
Binary file not shown.
1 change: 1 addition & 0 deletions docs/user_guide/case_studies/calendar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ and where the values are instances of :class:`pandas.arrays.IntervalArray` and h
df["end"],
closed="left",
),
include_groups=False,
)
)
meetings
Expand Down
3 changes: 2 additions & 1 deletion docs/user_guide/case_studies/football.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ Using this dataframe we will now provide answers for miscellaneous questions. I
.. ipython:: python
CvsL.groupby("half").apply(
lambda df: df.query("score_liverpool - score_chelsea == 1").index.length.sum()
lambda df: df.query("score_liverpool - score_chelsea == 1").index.length.sum(),
include_groups=False,
)
**What was the score at the 80 minute mark?**
Expand Down
1 change: 1 addition & 0 deletions docs/user_guide/case_studies/maintenance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ where the values are instances of :class:`pandas.arrays.IntervalArray`.
df["end"],
closed="left",
),
include_groups=False,
)
)
maintenance
Expand Down

0 comments on commit 2cd73f5

Please sign in to comment.