Lista Rolling pandy

df['C'] = [window.to_list() for window in df.B.rolling(window=3)]
Angry Alpaca