Closed nalgae73 closed 2 weeks ago
Where do you see in the docs that NaN values should be considered False?
the docs I see states:
If skipna is False, then NA are treated as True, because these are not equal to zero.
skipna : bool, default True Exclude NA/null values. If the entire row/column is NA and skipna is True, then the result will be True, as for an empty row/column. If skipna is False, then NA are treated as True, because these are not equal to zero.
I mismemorized. Thank you asishm.
Pandas version checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pandas.
[X] I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
The
DataFrame.all
method returnsTrue
whenskipna=False
even if there areNaN
values in the DataFrame. According to the documentation,NaN
values should be considered asFalse
whenskipna=False
.Expected Behavior
Expected output: False, but it returns True
Installed Versions