Skip to content

DOC: Incorrect Documentation: pd.Dataframe.dropna #59510

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
SMAntony opened this issue Aug 14, 2024 · 2 comments
Closed
1 task done

DOC: Incorrect Documentation: pd.Dataframe.dropna #59510

SMAntony opened this issue Aug 14, 2024 · 2 comments
Assignees
Labels
Closing Candidate May be closeable, needs more eyeballs Docs

Comments

@SMAntony
Copy link

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/reference/api/pandas.DataFrame.dropna.html

Documentation problem

image

Keyword Argument 'how' is defined as "_NoDefault.no_default" but it has a default value 'any'

Suggested fix for documentation

Change the value of the keyword arg 'how' to 'any'

@SMAntony SMAntony added Docs Needs Triage Issue that has not been reviewed by a pandas team member labels Aug 14, 2024
@sgysherry
Copy link

take

@rhshadrach
Copy link
Member

rhshadrach commented Aug 14, 2024

Thanks for the report!

Keyword Argument 'how' is defined as "_NoDefault.no_default" but it has a default value 'any'

DataFrame.dropna(thresh=2) is not the same as DataFrame.dropna(how="any", thresh=2). Therefore, it is not correct to specify "any" as the default value in the function's signature.

@rhshadrach rhshadrach added Closing Candidate May be closeable, needs more eyeballs and removed Needs Triage Issue that has not been reviewed by a pandas team member labels Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closing Candidate May be closeable, needs more eyeballs Docs
Projects
None yet
Development

No branches or pull requests

4 participants