Skip to content

Commit f997535

Browse files
lamprinikouroupmhatre1
authored andcommitted
DOC: Changed ndim to 1, modified doc as suggested. pandas-dev#57088 (pandas-dev#58091)
* pandas-dev#57088: Changed ndim to 1, modified doc as suggested. * added tab
1 parent eb2a256 commit f997535

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
@@ -11497,7 +11497,7 @@ def any(
1149711497
**kwargs,
1149811498
) -> Series | bool: ...
1149911499

11500-
@doc(make_doc("any", ndim=2))
11500+
@doc(make_doc("any", ndim=1))
1150111501
def any(
1150211502
self,
1150311503
*,
@@ -11543,7 +11543,7 @@ def all(
1154311543
**kwargs,
1154411544
) -> Series | bool: ...
1154511545

11546-
@doc(make_doc("all", ndim=2))
11546+
@doc(make_doc("all", ndim=1))
1154711547
def all(
1154811548
self,
1154911549
axis: Axis | None = 0,

pandas/core/generic.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -11887,9 +11887,9 @@ def last_valid_index(self) -> Hashable:
1188711887
1188811888
Returns
1188911889
-------
11890-
{name1} or {name2}
11891-
If level is specified, then, {name2} is returned; otherwise, {name1}
11892-
is returned.
11890+
{name2} or {name1}
11891+
If axis=None, then a scalar boolean is returned.
11892+
Otherwise a Series is returned with index matching the index argument.
1189311893
1189411894
{see_also}
1189511895
{examples}"""

0 commit comments

Comments
 (0)