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 read data from local repository?
Hey there,
I'm using the 'store' operator to store a csv file into my local repository. Everything works fine and when I use the 'retrieve' operator it can access the created file just as its supposed to be. But when I use the 'execute python' operator in which the code tries to read the .csv by the path I copied from the file in my local repository by clicking 'copy location to clipboard' it says that the file doesn't exist. How can I access the file by the 'execute python' operator?
If I can access it just by connecting the 'retrieve' operator to the 'execute python' - how do I call the output of 'retrieve' in the python code?
I'm using the 'store' operator to store a csv file into my local repository. Everything works fine and when I use the 'retrieve' operator it can access the created file just as its supposed to be. But when I use the 'execute python' operator in which the code tries to read the .csv by the path I copied from the file in my local repository by clicking 'copy location to clipboard' it says that the file doesn't exist. How can I access the file by the 'execute python' operator?
If I can access it just by connecting the 'retrieve' operator to the 'execute python' - how do I call the output of 'retrieve' in the python code?
Tagged:
0
Best Answer
-
tkenez Employee-RapidMiner, RapidMiner Certified Expert, Member Posts: 22 RM Product ManagementHi @DDresen,If I'm reading your question right, then what you need to do is just wire the output of your Retrieve operator into the first inp port of Execute Python.Next, the mandatory rm_main function signature has to match the number of wired input ports. The inputs will be made available to you in that same order, as the input parameters of the rm_main function. You will get these inputs as pandas DataFrames, so you can work with them inside rm_main based on this assumption.I attached a very rudimentary process that should demonstrate this.Let me know if this helps.5
Answers
Dortmund, Germany