Skip to content
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

Implement scans and reductions in pylibcudf #14970

Merged
merged 11 commits into from
Feb 6, 2024
1 change: 1 addition & 0 deletions docs/cudf/source/user_guide/api_docs/pylibcudf/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This page provides API documentation for pylibcudf.
gpumemoryview
groupby
join
reduce
scalar
table
types
Expand Down
6 changes: 6 additions & 0 deletions docs/cudf/source/user_guide/api_docs/pylibcudf/reduce.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
======
reduce
======

.. automodule:: cudf._lib.pylibcudf.reduce
:members:
20 changes: 3 additions & 17 deletions python/cudf/cudf/_lib/aggregation.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,14 @@
from libcpp.memory cimport unique_ptr

from cudf._lib cimport pylibcudf
from cudf._lib.cpp.aggregation cimport (
groupby_aggregation,
groupby_scan_aggregation,
reduce_aggregation,
rolling_aggregation,
scan_aggregation,
)
from cudf._lib.cpp.aggregation cimport rolling_aggregation


cdef class RollingAggregation:
cdef unique_ptr[rolling_aggregation] c_obj

cdef class GroupbyAggregation:
cdef class Aggregation:
cdef pylibcudf.aggregation.Aggregation c_obj

cdef class ReduceAggregation:
cdef unique_ptr[reduce_aggregation] c_obj

cdef class ScanAggregation:
cdef unique_ptr[scan_aggregation] c_obj

cdef RollingAggregation make_rolling_aggregation(op, kwargs=*)
cdef GroupbyAggregation make_groupby_aggregation(op, kwargs=*)
cdef ReduceAggregation make_reduce_aggregation(op, kwargs=*)
cdef ScanAggregation make_scan_aggregation(op, kwargs=*)
cdef Aggregation make_aggregation(op, kwargs=*)
Loading
Loading