From 25e119d8b458887995283affe5f5df7624714302 Mon Sep 17 00:00:00 2001 From: Bert Palm <bert.palm@ufz.de> Date: Wed, 23 Jun 2021 11:21:19 +0200 Subject: [PATCH] fixed failing regex in API --- saqc/core/core.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/saqc/core/core.py b/saqc/core/core.py index 583d5294a..0409cc35f 100644 --- a/saqc/core/core.py +++ b/saqc/core/core.py @@ -287,7 +287,12 @@ class SaQC(FuncModules): ) # expand regular expressions - fields = self._data.columns.str.match(field) if regex else toSequence(field) + if regex: + fields = self._data.columns.str.match(field) + fields = self._data.columns[fields] + else: + fields = toSequence(field) + for field in fields: target = target if target is not None else field if field != target: -- GitLab