I have a kedro node which returns a list of pandas dataframe. In another node I do_something()
to the dataframes. For example:
def first_node():
"""returns a list"""
return list_item
def do_something(data):
"""perform same action to all list element"""
data_ls = []
for item in data:
#do thing
data_ls.append(item)
return data_ls
However, instead of performing all actions in same node I want to create a different nodes for each list element returned by first_node()
. I am struggling with this because kedro pipeline expects explicit mention of input
and output
. Is it possible to achieve this with kedro?
Thanks a lot!