[FEA]need support 'product' method in cudf.Dataframe.groupby.agg #4882
Labels
feature request
New feature or request
libcudf
Affects libcudf (C++/CUDA) code.
Python
Affects Python cuDF API.
When I try to use cudf.DataFrame.groupby.agg with 'product' method, it report an error.
steps to reproduce the error:
nvidia-docker run -it --rm nvcr.io/nvidia/rapidsai/rapidsai:cuda10.1-runtime-ubuntu18.04
import cudf data=cudf.DataFrame({'a':[1,1,2],'b':[2,3,4]}) data.groupby('a').agg('product')
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/conda/envs/rapids/lib/python3.6/site-packages/cudf/core/groupby/groupby.py", line 143, in agg result = self._groupby.aggregate(self.obj, normalized_aggs) File "cudf/_libxx/groupby.pyx", line 144, in cudf._libxx.groupby.GroupBy.aggregate RuntimeError: cuDF failure at: /conda/conda-bld/libcudf_1585640494801/work/cpp/src/aggregation/result_cache.cpp:88: Result does not exist in cache
I find cudf.Dataframe.groupby.agg support 'product' in the source code aggregation.pyx , but it is not listed ingroupby.pyx
This is an important method in my customer's procedure. Can we support this method?
The text was updated successfully, but these errors were encountered: