Skip to content
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

API: drop kwargs from Series.dropna, add explicit how parameter #29388

Merged

Conversation

topper-123
Copy link
Contributor

Using **kwargs gave false type hints on what the dropna method could take for arguments, and supplying anything but how raised a TypeError already.

@@ -4608,7 +4608,7 @@ def dropna(self, axis=0, inplace=False, **kwargs):
There is only one axis to drop values from.
inplace : bool, default False
If True, do operation inplace and return None.
**kwargs
how : str, optional
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe mention this is for compatibility

@topper-123 topper-123 force-pushed the tighten_series_dropna_signature branch from 0de5a25 to 77461fd Compare November 3, 2019 22:24
@topper-123 topper-123 added this to the 1.0 milestone Nov 3, 2019
@topper-123 topper-123 force-pushed the tighten_series_dropna_signature branch from 77461fd to a85ef2a Compare November 4, 2019 17:31
@topper-123 topper-123 force-pushed the tighten_series_dropna_signature branch from a85ef2a to 8a45957 Compare November 4, 2019 19:24
@topper-123 topper-123 merged commit 4f85eb8 into pandas-dev:master Nov 4, 2019
@topper-123 topper-123 deleted the tighten_series_dropna_signature branch November 4, 2019 19:58
Reksbril pushed a commit to Reksbril/pandas that referenced this pull request Nov 18, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
proost pushed a commit to proost/pandas that referenced this pull request Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants