8000 DataFrame.drop Raises KeyError definition by MaxVanDeursen · Pull Request #25474 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

DataFrame.drop Raises KeyError definition #25474

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

Merged
merged 3 commits into from
Feb 28, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Correct Raises in DataFrame.drop documentation
In this commit, the description in the documentation for the
DataFrame.drop function is corrected. Prior to this commit, the
provided condition for throwing a KeyError was not aligned with the
behaviour of the code. After this commit, this condition is.
  • Loading branch information
MaxVanDeursen committed Feb 28, 2019
commit d714c5d07af65afbffb7320131cdac59b93dd3e0
2 changes: 1 addition & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -3817,7 +3817,7 @@ def drop(self, labels=None, axis=0, index=None, columns=None,
Raises
------
KeyError
If none of the labels are found in the selected axis
If one of the labels is not found in the selected axis.

See Also
--------
Expand Down
0