Closed
Description
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.