How to load multiple dataset via "execute python" operator?
tahsin
New Altair Community Member
Best Answer
-
Your datasets are 'assigned' to your inputs, so if you have one input you would usedef rm_main(my_dataset_1):
If you have 2 it would become :def rm_main(my_dataset_1, my_dataset_2):
And so on.
To get multiple outputs it works like this :
return my_dataframe_1
will provide a datatable at the first output port
return my_dataframe_1, my_dataframe_2
Will return my_dataframe_1 to output 1 and my_dataframe_2 to output 2.
And so on. And of course you can name them different...1
Answers
-
Your datasets are 'assigned' to your inputs, so if you have one input you would usedef rm_main(my_dataset_1):
If you have 2 it would become :def rm_main(my_dataset_1, my_dataset_2):
And so on.
To get multiple outputs it works like this :
return my_dataframe_1
will provide a datatable at the first output port
return my_dataframe_1, my_dataframe_2
Will return my_dataframe_1 to output 1 and my_dataframe_2 to output 2.
And so on. And of course you can name them different...1