Skip to content

Commit 76432b3

Browse files
pandas-dev#57088: Changed ndim to 1, modified doc as suggested.
1 parent 4241ba5 commit 76432b3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pandas/core/frame.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11494,7 +11494,7 @@ def any(
1149411494
**kwargs,
1149511495
) -> Series | bool: ...
1149611496

11497-
@doc(make_doc("any", ndim=2))
11497+
@doc(make_doc("any", ndim=1))
1149811498
def any(
1149911499
self,
1150011500
*,
@@ -11540,7 +11540,7 @@ def all(
1154011540
**kwargs,
1154111541
) -> Series | bool: ...
1154211542

11543-
@doc(make_doc("all", ndim=2))
11543+
@doc(make_doc("all", ndim=1))
1154411544
def all(
1154511545
self,
1154611546
axis: Axis | None = 0,

pandas/core/generic.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -11881,9 +11881,9 @@ def last_valid_index(self) -> Hashable:
1188111881
1188211882
Returns
1188311883
-------
11884-
{name1} or {name2}
11885-
If level is specified, then, {name2} is returned; otherwise, {name1}
11886-
is returned.
11884+
{name2} or {name1}
11885+
If axis=None, then a scalar boolean is returned.
11886+
Otherwise a Series is returned with index matching the index argument.
1188711887
1188811888
{see_also}
1188911889
{examples}"""

0 commit comments

Comments
 (0)