Options

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

  • Options
    MartinLiebigMartinLiebig Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,510 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

  • Options
    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

  • Options
    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.