标签: python pandas dataframe rolling-computation
我可以将另一个数据框列用作.rolling()窗口值吗?
w = df['rolling_window'] df['target'] = df['main_value'].rolling(w).mean()
答案 0 :(得分:0)
好的,与此同时我找到了答案:
I'm done with Python for data science, I'm moving to Julia!