Skip to content

DOC: DataFrame.any() and DataFrame.all() documentation specifies the wrong return types #57088

Closed
@caneff

Description

@caneff

Pandas version checks

  • I have checked that the issue still exists on the latest versions of the docs on main here

Location of the documentation

https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.any.html
https://pandas.pydata.org/docs/dev/reference/api/pandas.DataFrame.all.html

Documentation problem

The documentation specifies that the return type is either a DataFrame or Series, but the code specifies a Series or bool.

Series or bool is correct, and the level argument mentioned in the code no longer exists.

Suggested fix for documentation

Returns:
DataFrame or scalar
If axis=None, then a scalar boolean is returned. Otherwise a Series is returned with index matching the index argument.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions