Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,415 changes: 4,415 additions & 0 deletions notebooks/rolling-mean.ipynb

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions tests/unit/test_ops.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import datetime as dt
import re
from unittest.mock import patch

Expand Down Expand Up @@ -989,3 +990,7 @@ def test_linear_regression_scmrun():
assert_scmdf_almost_equal(
res, exp, allow_unordered=True, check_ts_names=False, rtol=1e-3
)


# TODO: notebook illustrating rolling mean options
# Rationale: rolling means are really tricky (do you take e.g. an annual mean first, do you worry about happens at the window edge?) and they're pretty easy to convert back into ScmRun objects so a notebooks is probably more helpful than exact functionality for now