Skip to content

Commit 465504f

Browse files
committed
DOC: Correct groupby first and last docstrings
1 parent 33125c9 commit 465504f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/core/groupby/groupby.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -2252,7 +2252,7 @@ def first(self, numeric_only: bool = False, min_count: int = -1):
22522252
Returns
22532253
-------
22542254
Series or DataFrame
2255-
First not non-null of values within each group.
2255+
First non-null of values within each group.
22562256
22572257
See Also
22582258
--------
@@ -2312,7 +2312,7 @@ def last(self, numeric_only: bool = False, min_count: int = -1):
23122312
Returns
23132313
-------
23142314
Series or DataFrame
2315-
Last not non-null of values within each group.
2315+
Last non-null of values within each group.
23162316
23172317
See Also
23182318
--------
@@ -2330,7 +2330,6 @@ def last(self, numeric_only: bool = False, min_count: int = -1):
23302330
A
23312331
1 5.0 2
23322332
3 6.0 3
2333-
23342333
"""
23352334

23362335
def last_compat(obj: NDFrameT, axis: int = 0):

0 commit comments

Comments
 (0)