Skip to content
Snippets Groups Projects

simplify/unify flags concatenation workflows

Merged Peter Lünenschloß requested to merge simplifyFlagsConcatenation into develop
+ 14
2
@@ -559,8 +559,20 @@ def concatFlags(
history = flags.history[field].apply(dummy.index, func, func_kws)
if squeeze:
history = history.max()
flags.history[target].append(history)
meta = {
"func": f"concatFlags({field})",
"args": (field, target),
"kwargs": {
"method": method,
"freq": freq,
"drop": drop,
"squeeze": squeeze,
**kwargs,
},
}
flags.history[target].append(history, meta)
else:
flags.history[target].append(history)
if drop:
data, flags = tools.dropField(data=data, flags=flags, field=field)
Loading