From 15bdb382ee24cbbb332c2234fdd0caf431b18d27 Mon Sep 17 00:00:00 2001 From: MarcoGorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Mon, 3 Jul 2023 12:09:47 +0100 Subject: [PATCH 1/2] add some cumulative Column operations --- .../dataframe_api/column_object.py | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/spec/API_specification/dataframe_api/column_object.py b/spec/API_specification/dataframe_api/column_object.py index 40b68b2a..316d0b20 100644 --- a/spec/API_specification/dataframe_api/column_object.py +++ b/spec/API_specification/dataframe_api/column_object.py @@ -498,6 +498,32 @@ def var(self, *, skip_nulls: bool = True) -> Scalar: dtypes. """ + def cummax(self) -> Column: + """ + Reduction returns a Column. Any data type that supports comparisons + must be supported. The returned value has the same dtype as the column. + """ + + def cummin(self) -> Column: + """ + Reduction returns a Column. Any data type that supports comparisons + must be supported. The returned value has the same dtype as the column. + """ + + def cumsum(self) -> Column: + """ + Reduction returns a Column. Must be supported for numerical and + datetime data types. The returned value has the same dtype as the + column. + """ + + def cumprod(self) -> Column: + """ + Reduction returns a Column. Must be supported for numerical and + datetime data types. The returned value has the same dtype as the + column. + """ + def is_null(self) -> Column: """ Check for 'missing' or 'null' entries. From 2dd19d76f5ba26de2d46e9d7c39cbf7de3694b0d Mon Sep 17 00:00:00 2001 From: MarcoGorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Wed, 5 Jul 2023 15:07:02 +0100 Subject: [PATCH 2/2] update --- spec/API_specification/dataframe_api/column_object.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/API_specification/dataframe_api/column_object.py b/spec/API_specification/dataframe_api/column_object.py index fc014790..11b96ef2 100644 --- a/spec/API_specification/dataframe_api/column_object.py +++ b/spec/API_specification/dataframe_api/column_object.py @@ -525,26 +525,26 @@ def var(self, *, correction: int | float = 1, skip_nulls: bool = True) -> Scalar Whether to skip null values. """ - def cummax(self) -> Column: + def cumulative_max(self) -> Column: """ Reduction returns a Column. Any data type that supports comparisons must be supported. The returned value has the same dtype as the column. """ - def cummin(self) -> Column: + def cumulative_min(self) -> Column: """ Reduction returns a Column. Any data type that supports comparisons must be supported. The returned value has the same dtype as the column. """ - def cumsum(self) -> Column: + def cumulative_sum(self) -> Column: """ Reduction returns a Column. Must be supported for numerical and datetime data types. The returned value has the same dtype as the column. """ - def cumprod(self) -> Column: + def cumulative_prod(self) -> Column: """ Reduction returns a Column. Must be supported for numerical and datetime data types. The returned value has the same dtype as the