databricks / koalas

Koalas: pandas API on Apache Spark
Apache License 2.0
3.34k stars 358 forks source link

Implement Pandas rolling window with options such as center and win_type #1542

Open deba46 opened 4 years ago

deba46 commented 4 years ago

For ex : Pandas code df2 = df['xx'].rolling(window=25, min_periods=10, win_type='hamming', center=True) in Koalas df['xx'].rolling(25) - works Also if possible please implement apply function while using window . Ex. df['xx'].rolling(window=25, min_periods=10, win_type='hamming', center=True).apply(func)

HyukjinKwon commented 4 years ago

Yeah, we should implement them.