Skip to content
Snippets Groups Projects
Commit 765876f1 authored by Bert Palm's avatar Bert Palm 🎇
Browse files

added docu and formatting of comment

parent e8ba581b
No related branches found
No related tags found
No related merge requests found
......@@ -220,6 +220,18 @@ class SaQC(FuncModules):
return data.to_df(), self._translator.backward(flags)
def _wrap(self, func: Callable):
""" Enrich a function by special saqc-functionality.
For each saqc function this realize
- the source-target workflow,
- regex's in field,
- translation of ``flag`` and
- working inplace.
Therefore it adds the following keywords to each saqc function:
``target``, ``regex`` and ``inplace``.
The returned function returns a Saqc object.
"""
def inner(
field: str,
*args,
......@@ -233,6 +245,8 @@ class SaQC(FuncModules):
if regex and target is not None:
raise ValueError("explicit `target` not supported with `regex=True`")
# kwargs['flag'] = self._translator(flag)
# kwargs.setdefault('to_mask', self._translator.TO_MASK)
kwargs = {
"flag": self._translator(flag),
"to_mask": self._translator.TO_MASK,
......
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