xorbits icon indicating copy to clipboard operation
xorbits copied to clipboard

BUG: groupby rolling adaption

Open UranusSeven opened this issue 2 years ago • 1 comments

Describe the bug

We've implement xorbits._mars.dataframe.groupby.rolling.GroupByRolling, and need to add an adapter for it.

To Reproduce

To help us to reproduce this bug, please provide information below:

  1. Your Python version
  2. The version of Xorbits you use master
  3. Versions of crucial packages, such as numpy, scipy and pandas
  4. Full stack of the error.
  5. Minimized code to reproduce the error.
In [1]: import xorbits.pandas as pd

In [2]: df = pd.read_csv('stock.csv', index_col=0, parse_dates=True)

In [3]: df.groupby(
   ...:         ['StockName']).rolling(window=10).mean(numeric_only=True)[['Open', 'High', 'Low', 'Close'
   ...: , 'Volume']]
Out[4]: DataFrame <op=DataFrameIndex, key=d21f5134e213a596827c24722f2df7e4_0>

mini_stock.csv

Expected behavior

Computation should be triggered.

Additional context

UranusSeven avatar Jun 07 '23 03:06 UranusSeven

take

RayJi01 avatar Jun 30 '23 02:06 RayJi01