From 3801075add6b1853ebfca92fccff62eeecd0a3e4 Mon Sep 17 00:00:00 2001 From: MarcoGorelli <> Date: Mon, 3 Apr 2023 09:22:50 +0100 Subject: [PATCH] add any and all rowwise --- .../dataframe_api/dataframe_object.py | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/spec/API_specification/dataframe_api/dataframe_object.py b/spec/API_specification/dataframe_api/dataframe_object.py index c133d79a..29dd2331 100644 --- a/spec/API_specification/dataframe_api/dataframe_object.py +++ b/spec/API_specification/dataframe_api/dataframe_object.py @@ -475,6 +475,34 @@ def all(self, skipna: bool = True) -> DataFrame: Reduction returns a 1-row DataFrame. """ ... + + def any_rowwise(self, skipna: bool = True) -> Column: + """ + Reduction returns a Column. + + Differs from ``DataFrame.any`` and that the reduction happens + for each row, rather than for each column. + + Raises + ------ + ValueError + If any of the DataFrame's columns is not boolean. + """ + ... + + def all_rowwise(self, skipna: bool = True) -> Column: + """ + Reduction returns a Column. + + Differs from ``DataFrame.all`` and that the reduction happens + for each row, rather than for each column. + + Raises + ------ + ValueError + If any of the DataFrame's columns is not boolean. + """ + ... def min(self, skipna: bool = True) -> DataFrame: """