[FEA] Groupby Skew
- Dominant language
- C++
- Stars
- 9.8k
- Forks
- 1.1k
- Avg merge
- 3d 6m
- Merged PRs (30d)
- 278
Description
**Is your feature request related to a problem? Please describe.**
I would like to have aggregations for skew with cudf.
```python
import cudf
df = cudf.DataFrame({'col_1':[0,0,0,0,1,1,1,1],
'col_2':[0,10,20,20,30,40,10,20]})
df.groupby(['col_1']).skew()
```
```python
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
in
2 df = cudf.DataFrame({'col_1':[0,0,0,0,1,1,1,1],
3 'col_2':[0,10,20,20,30,40,10,20]})
----> 4 df.groupby(['col_1']).skew()
/nvme/0/vjawa/vjawa_cudf/cudf/python/cudf/cudf/core/groupby/groupby.py in __getattribute__(self, key)
686 def __getattribute__(self, key):
687 try:
--> 688 return super().__getattribute__(key)
689 except AttributeError:
690 if key in self.obj:
/nvme/0/vjawa/vjawa_cudf/cudf/python/cudf/cudf/core/groupby/groupby.py in __getattribute__(self, key)
61 def __getattribute__(self, key):
62 try:
---> 63 return super().__getattribute__(key)
64 except AttributeError:
65 if key in libgroupby._GROUPBY_AGGS:
AttributeError: 'DataFrameGroupBy' object has no attribute 'skew'
```
**Describe the solution you'd like**
```python
import pandas as pd
df = pd.DataFrame({'col_1':[0,0,0,0,1,1,1,1],
'col_2':[0,10,20,20,30,40,10,20]})
df.groupby(['col_1']).skew()
```
```python
col_2
col_1
0 -0.854563
1 0.000000
```
Contributor guide
Assessment
This issue has not been assessed yet.