real generic?
I would like to do elemental flag and process operations on variables by looping over their fields names (isflagged, adding, ...).
Since eval
is evil - this is not possible with the generic functions.
For the isFlagged
move i use the "match" mode of reindexFlags
as a workaround.
But for processing tasks i dont know what to use.
Did i miss something, or dont we have a solution for that?
Would their be any objections if i implemented something like:
def lambdaGeneric(data, field, flagger, fields, func):
data[field] = func[data[fields]]
...
Maybe just by adding it to the transform.transformation - wich already serves to workaround this shortcoming in the case of single value transformation. Objections? @palmb , @schaefed ?