Skip to content

Commit ebe43ac

Browse files
authored
Update pandas.Series.__invert__.rst
1 parent 10ba2d2 commit ebe43ac

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

doc/source/reference/api/pandas.Series.__invert__.rst

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,17 @@ pandas.Series.__invert__
66
Elementwise invert (``~``) for :class:`pandas.Series`.
77

88
**Signature**
9-
``Series.__invert__(self) -> Series``
9+
10+
``Series.__invert__(self) -> Series``
1011

1112
**Summary**
12-
For boolean and nullable-boolean dtypes, ``~s`` toggles the mask
13-
(``True`` ↔ ``False``) and propagates ``pd.NA``. For integer dtypes,
14-
``~`` performs bitwise invert as in Python.
13+
14+
For boolean and nullable-boolean dtypes, ``~s`` toggles the mask
15+
(``True`` ↔ ``False``) and propagates ``pd.NA``. For integer dtypes,
16+
``~`` performs bitwise invert as in Python.
17+
18+
.. seealso::
19+
:ref:`indexing.boolean`
1520

1621
**Examples**
1722

@@ -43,6 +48,6 @@ Arrow-backed boolean (if pyarrow installed)::
4348
dtype: boolean[pyarrow]
4449

4550
**Notes**
46-
* In Python’s stdlib, :func:`operator.__invert__` is bitwise invert on integers.
51+
52+
- In Python’s stdlib, :func:`operator.__invert__` is bitwise invert on integers.
4753
In pandas, ``~`` on boolean arrays is elementwise invert.
48-
* See also :ref:`user_guide.boolean_indexing`.

0 commit comments

Comments
 (0)