From 40d527566bd8080e47b8079c236c03508af10736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Sch=C3=A4fer?= <david.schaefer@ufz.de> Date: Tue, 4 Jul 2023 08:22:10 +0200 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 596306f74..9ebb780ff 100644 --- a/README.md +++ b/README.md @@ -92,14 +92,14 @@ data = pd.read_csv( index_col=0, parse_dates=True, ) -saqc = SaQC(data=data) -saqc = (saqc - .shift("SM2", freq="15Min") - .flagMissing("SM(1|2)+", regex=True) - .flagRange("SM1", min=10, max=60) - .flagRange("SM2", min=10, max=40) - .flagZScore("SM2", window="30d", thresh=3.5, method='modified', center=False) - .flagGeneric(field=["SM1", "SM2"], target="Dummy", func=lambda x, y: (isflagged(x) | isflagged(y)))) +qc = SaQC(data=data) +qc = (qc + .shift("SM2", freq="15Min") + .flagMissing("SM(1|2)+", regex=True) + .flagRange("SM1", min=10, max=60) + .flagRange("SM2", min=10, max=40) + .flagZScore("SM2", window="30d", thresh=3.5, method='modified', center=False) + .flagGeneric(field=["SM1", "SM2"], target="Dummy", func=lambda x, y: (isflagged(x) | isflagged(y)))) ``` A more detailed description of the Python API is available in the -- GitLab