Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task done
caneff opened this issue Jan 26, 2024 · 6 comments · Fixed by #58091
Closed
1 task done
Assignees
Labels

Comments

@caneff
Copy link
Contributor

caneff commented Jan 26, 2024

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.

@caneff caneff added Docs Needs Triage Issue that has not been reviewed by a pandas team member labels Jan 26, 2024
@rhshadrach
Copy link
Member

Thanks for the report, agreed - cleaning this up would be most welcome!

@rhshadrach rhshadrach added good first issue Reduction Operations sum, mean, min, max, etc. and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Jan 26, 2024
@StephenLHChan
Copy link

take

@sammig6i
Copy link

sammig6i commented Mar 8, 2024

take

@sejalgolani2801
Copy link

Hey, I'm new to open source but my interests lie in ML. Can I work on this issue?

@mohmmadAyesh
Copy link

Hi is Can I Contribute to this issue please

@gboeker gboeker removed their assignment Mar 26, 2024
@lamprinikourou
Copy link
Contributor

Hello! Can I contribute to this issue?

lamprinikourou added a commit to lamprinikourou/pandas that referenced this issue Mar 31, 2024
mroeschke pushed a commit that referenced this issue Apr 1, 2024
* #57088: Changed ndim to 1, modified doc as suggested.

* added tab
diogomsmiranda pushed a commit to diogomsmiranda/pandas that referenced this issue Apr 1, 2024
pmhatre1 pushed a commit to pmhatre1/pandas-pmhatre1 that referenced this issue May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment