Community & Support
Learn
Marketplace
Discussions
Categories
Discussions
General
Platform
Academic
Partner
Regional
User Groups
Documentation
Events
Altair Exchange
Share or Download Projects
Resources
News & Instructions
Programs
YouTube
Employee Resources
This tab can be seen by employees only. Please do not share these resources externally.
Groups
Join a User Group
Support
Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
How to load multiple dataset via "execute python" operator?
tahsin
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.
Find more posts tagged with
AI Studio
Python
Accepted answers
kayman
Your datasets are 'assigned' to your inputs, so if you have one input you would use
def 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...
All comments
kayman
Your datasets are 'assigned' to your inputs, so if you have one input you would use
def 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...
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups