Skip to content

Commit e040de5

Browse files
author
MarcoGorelli
committed
add __invert__
1 parent c3646e5 commit e040de5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

spec/API_specification/dataframe_api/dataframe_object.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,12 @@ def __divmod__(self, other: DataFrame | Scalar) -> tuple[DataFrame, DataFrame]:
418418
"""
419419
...
420420

421+
def __invert__(self) -> DataFrame:
422+
"""
423+
Invert truthiness of (boolean) elements.
424+
"""
425+
...
426+
421427
def any(self, skipna: bool = True) -> DataFrame:
422428
"""
423429
Reduction returns a 1-row DataFrame.

0 commit comments

Comments
 (0)