Skip to content

Commit 5b1f72a

Browse files
authored
DOC: fix code in groupby documentation (#50640)
* DOC: fix code in groupby documentation * fix typo in docstring
1 parent c2b2a49 commit 5b1f72a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

doc/source/user_guide/groupby.rst

+1
Original file line numberDiff line numberDiff line change
@@ -1083,6 +1083,7 @@ The dimension of the returned result can also change:
10831083
def f(group):
10841084
return pd.DataFrame({'original': group,
10851085
'demeaned': group - group.mean()})
1086+
10861087
grouped.apply(f)
10871088
10881089
``apply`` on a Series can operate on a returned value from the applied function,

pandas/core/arrays/datetimes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,7 @@ def isocalendar(self) -> DataFrame:
16781678
See Also
16791679
--------
16801680
quarter : Return the quarter of the date.
1681-
is_quarter_end : Similar property for indicating the quarter start.
1681+
is_quarter_end : Similar property for indicating the quarter end.
16821682
16831683
Examples
16841684
--------

0 commit comments

Comments
 (0)