-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: skipna parameter in series.any() returns wrong result #23109
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
Comments
I think the docs at Lines 9728 to 9730 in 12a0dc4
|
Isn't this a better way? ↓ Because if the docs are incorrect then there is probably no way to return NA for Null values |
min_count I thikn
…On Fri, Oct 12, 2018 at 11:25 AM Kartikay Bhutani ***@***.***> wrote:
Isn't this a better way? ↓
If skipana is None which is default then it returns NA on whole NaN
rows/column
If True/False then return True/False respectively for whole NA
Because if the docs are incorrect then there is probably no way to return
NA for Null values
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#23109 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABQHIhLJLLq1TczRspP-JDekrFBh8mKiks5ukMJtgaJpZM4XZlWL>
.
|
My opinion: I think the problem is the documentation; the result is actually correct. If you ask if any of an empty set of statements is True, the answer is no. This is consistent with
|
I suppose this as well. So I think @dsaxton is right that it is only the documentation that is incorrect. |
@jorisvandenbossche What would you say is the appropriate fix for this? If the documentation is a general statement about the |
… and data are all NA (pandas-dev#23109) Include examples with NA values and describe treatement of NA with `skipna == False`
…#23109) Also include examples with NA values and clarify treatment of NA with `skipna == False`
…#23109) Also include examples with NA values and clarify treatment of NA with `skipna == False`
Expected output:
0 True
1 True
2 True
3 True
4 False
5 True
6 True
dtype: bool
Returned output:
0 True
1 True
2 True
3 True
4 False
5 False
6 True
dtype: bool
As written in documentation, If an entire row/column is NA, the result will be NA
But NA isn't returned in any of the cases (Keeping skipna True or False)
The text was updated successfully, but these errors were encountered: