Skip to content

Commit 1a08e61

Browse files
committed
add whatsnew and add comments to pandas/tests/arrays/boolean/test_reduction.py related to issue pandas-dev#33253
1 parent 7106f90 commit 1a08e61

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

doc/source/whatsnew/v1.1.0.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ Missing
368368
^^^^^^^
369369

370370
- Calling :meth:`fillna` on an empty Series now correctly returns a shallow copied object. The behaviour is now consistent with :class:`Index`, :class:`DataFrame` and a non-empty :class:`Series` (:issue:`32543`).
371-
371+
- Bug in :meth:`array.any` incorrectly returns ``<NA>`` for pandas.array of all ``False`` value, e.g. ``pd.array([False, False], dtype="boolean")``. Now it returns ``False`` (:issue:`33253`)
372+
- Bug in :meth:`array.all` incorrectly returns ``<NA>`` for pandas.array of all ``True`` value, e.g. ``pd.array([True, True], dtype="boolean")``. Now it returns ``True``(:issue:`33253`)
372373
373374
MultiIndex
374375
^^^^^^^^^^

pandas/tests/arrays/boolean/test_reduction.py

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ def data():
1212
)
1313

1414

15+
# .any(), .all() returns <NA> for [False, False], [True, True], GH-33253.
1516
@pytest.mark.parametrize(
1617
"values, exp_any, exp_all, exp_any_noskip, exp_all_noskip",
1718
[

0 commit comments

Comments
 (0)