File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,17 @@ pandas.Series.__invert__
66Elementwise 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 `.
You can’t perform that action at this time.
0 commit comments