The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
How to load multiple dataset via "execute python" operator?
Hello,
I am working with the execute python operator. I know how the overall structure works and was successful running it but when I work with multiple datasets I am a bit confused how it works. How do I declare the datasets after I connect the input ports?
Thanks.
I am working with the execute python operator. I know how the overall structure works and was successful running it but when I work with multiple datasets I am a bit confused how it works. How do I declare the datasets after I connect the input ports?
Thanks.
Tagged:
0
Best Answer
-
kayman Member Posts: 662 UnicornYour 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