Skip to content
Snippets Groups Projects
Commit 565dacb2 authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

modified shifting

parent 326d2b10
No related branches found
No related tags found
1 merge request!850Horizontal axis rolling
Pipeline #206828 passed with stages
in 5 minutes and 37 seconds
......@@ -218,7 +218,7 @@ def _hroll(
f_out = pd.Series(np.nan, index=data[field].to_pandas().index)
f_out[window - 1 :] = f_result
if center:
f_out = f_out.shift(-window // 2)
f_out = f_out.shift(-int(np.floor(window / 2)))
for f in target:
data[f] = d_out
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment