We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When giving a string in the subset argument to dropna based on a single column, we get an error:
subset
Index(...) must be called with a collection of some kind, 'C' was passed
DataFrame.dropna should accept a single column subset as a string just like DataFrame.drop_duplicates
DataFrame.dropna
DataFrame.drop_duplicates
None I could think of
df = pd.DataFrame({"A": [1, 1, 3], "B": list("abc"), "C": [4, np.NaN, 5]}) print(df) A B C 0 1 a 4.0 1 2 b NaN 2 3 c 5.0 df = df.dropna(subset="C") print(df) A B C 0 1 a 4.0 2 3 c 5.0
The text was updated successfully, but these errors were encountered:
+1 Accepting a label or list is done in many places.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Is your feature request related to a problem?
When giving a string in the
subset
argument to dropna based on a single column, we get an error:Describe the solution you'd like
DataFrame.dropna
should accept a single column subset as a string just likeDataFrame.drop_duplicates
API breaking implications
None I could think of
The text was updated successfully, but these errors were encountered: