Skip to content

Commit 6f9a298

Browse files
Daniel SaxtonDaniel Saxton
Daniel Saxton
authored and
Daniel Saxton
committed
Update release notes and docs
1 parent bca582e commit 6f9a298

File tree

4 files changed

+31
-27
lines changed

4 files changed

+31
-27
lines changed

doc/source/user_guide/boolean.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Indexing with NA values
2222

2323
pandas allows indexing with ``NA`` values in a boolean array, which are treated as ``False``.
2424

25+
.. versionchanged:: 1.0.2
26+
2527
.. ipython:: python
2628
:okexcept:
2729

doc/source/user_guide/indexing.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ For getting values with a boolean array:
376376
377377
NA values in a boolean array propogate as ``False``:
378378

379+
.. versionchanged:: 1.0.2
380+
379381
mask = pd.array([True, False, True, False, pd.NA, False], dtype="boolean")
380382
mask
381383
df1[mask]

doc/source/whatsnew/v1.0.2.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,33 @@ Bug fixes
4646

4747
.. ---------------------------------------------------------------------------
4848
49+
Indexing with Nullable Boolean Arrays
50+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
51+
52+
Previously indexing with a nullable Boolean array containing ``NA`` would raise a ``ValueError``, however this is now permitted with ``NA`` being treated as ``False``. (:issue:`31503`)
53+
54+
.. ipython:: python
55+
56+
s = pd.Series([1, 2, 3, 4])
57+
mask = pd.array([True, True, False, None], dtype="boolean")
58+
s
59+
mask
60+
61+
*pandas 1.0.0-1.0.1*
62+
63+
.. code-block:: python
64+
65+
>>> s[mask]
66+
Traceback (most recent call last):
67+
...
68+
ValueError: cannot mask with array containing NA / NaN values
69+
70+
*pandas 1.0.2*
71+
72+
.. ipython:: python
73+
74+
s[mask]
75+
4976
.. _whatsnew_102.contributors:
5077

5178
Contributors

doc/source/whatsnew/v1.1.0.rst

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -36,33 +36,6 @@ For example:
3636
ser["2014"]
3737
ser.loc["May 2015"]
3838
39-
Indexing with Nullable Boolean Arrays
40-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41-
42-
Previously indexing with a nullable Boolean array containing ``NA`` would raise a ``ValueError``, however this is now permitted with ``NA`` being treated as ``False``. (:issue:`31503`)
43-
44-
.. ipython:: python
45-
46-
s = pd.Series([1, 2, 3, 4])
47-
mask = pd.array([True, True, False, None], dtype="boolean")
48-
s
49-
mask
50-
51-
*pandas 1.0.x*
52-
53-
.. code-block:: python
54-
55-
>>> s[mask]
56-
Traceback (most recent call last):
57-
...
58-
ValueError: cannot mask with array containing NA / NaN values
59-
60-
*pandas 1.1.0*
61-
62-
.. ipython:: python
63-
64-
s[mask]
65-
6639
.. _whatsnew_110.enhancements.other:
6740

6841
Other enhancements

0 commit comments

Comments
 (0)