# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3.9.7 ('base')
#     language: python
#     name: python3
# ---

# +
import dongsw.extension.pandas as pd
from dongsw.extension.sklearn.metrics import mean_squared_error, root_mean_squared_error_


data = pd.DataFrame({'1':[1,2,3], '2':[2,3,4]})
data
# -

pd.rolling_apply_(data, 2, lambda x: x.iloc[1])



StarcoderdataJupyterScriptsDedupFiltered