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

Execute Python: Script cannot be parsed error!

161591X161591X Member Posts: 2 Contributor I
edited December 2018 in Help

Hello! For some reason, when i press run to execute python, this popped up. May i know what's wrong?

 

 

python error 1.PNGreason python.PNG

Tagged:

Best Answer

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,533 RM Data Scientist
    Solution Accepted

    Hi,

     

    please have a look at the documentation and the examples. You need to define a main function called rm_main(...) which needs to be called. It's all explained in the examples.

     

    BR,

    Martin

    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany

Answers

  • 161591X161591X Member Posts: 2 Contributor I

    Thank you so much! I have one more question! 

    I was wondering how do i load the data "Read CSV file" in python and then print it out?

    read and analyse da6ta.PNG

  • kaymankayman Member Posts: 662 Unicorn

    As far as I can see the result should be your csv file, as you basically do data in -> data out

     

    If you want to use the print logic keep in mind that the behaviour might be a bit unexpected, as the python operator will write your print statements to the log file, but not to the output. The output will be a panda dataframe by default

Sign In or Register to comment.