Skip to content

Add some cumulative Column operations #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions spec/API_specification/dataframe_api/column_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,32 @@ def var(self, *, correction: int | float = 1, skip_nulls: bool = True) -> Scalar
Whether to skip null values.
"""

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 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 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 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
column.
"""

def is_null(self) -> Column:
"""
Check for 'missing' or 'null' entries.
Expand Down