diff --git a/spec/API_specification/dataframe_api/dataframe_object.py b/spec/API_specification/dataframe_api/dataframe_object.py index c133d79a..c0d30431 100644 --- a/spec/API_specification/dataframe_api/dataframe_object.py +++ b/spec/API_specification/dataframe_api/dataframe_object.py @@ -452,6 +452,17 @@ def __divmod__(self, other: DataFrame | Scalar) -> tuple[DataFrame, DataFrame]: """ ... + def __invert__(self) -> DataFrame: + """ + Invert truthiness of (boolean) elements. + + Raises + ------ + ValueError + If any of the DataFrame's columns is not boolean. + """ + ... + def __iter__(self) -> NoReturn: """ Iterate over elements. @@ -467,12 +478,22 @@ def __iter__(self) -> NoReturn: def any(self, skipna: bool = True) -> DataFrame: """ Reduction returns a 1-row DataFrame. + + Raises + ------ + ValueError + If any of the DataFrame's columns is not boolean. """ ... def all(self, skipna: bool = True) -> DataFrame: """ Reduction returns a 1-row DataFrame. + + Raises + ------ + ValueError + If any of the DataFrame's columns is not boolean. """ ...