Lana Dann
06/06/2022, 7:25 PMKevin Kho
Lana Dann
06/06/2022, 7:28 PMZanie
Kevin Kho
Lana Dann
06/08/2022, 5:43 PMtuples = [(1, 1), (2, 2), (3, 4)]
map_task = task(lambda x, y: x + y)
with Flow('Tuple Maps') as flow:
map_task.map(tuples)
i tried this and am getting
TypeError: missing a required argument: 'y'
@task
def map_task(tup):
x, y = tup
return x + y
...
map_task.map(tuples)
Kevin Kho
tuples
is of type List[Tuple]
. Mapping needs Tuple[List]
. Know what I mean?