Explore regression with Azure Machine Learning Designer - Python Error

Gonzalez, Ernie 25 Reputation points
2023-09-15T15:47:58.7066667+00:00
  • Python script errors out with Syntax error in following step.
  • Add an Execute Python Script module from the Python Language section, replacing all of the default python script with the following code (which selects only the Scored Labels column and renames it to predicted_price):
 import pandas as pd

 def azureml_main(dataframe1 = None, dataframe2 = None):

     scored_results = dataframe1[['Scored Labels']]
     scored_results.rename(columns={'Scored Labels':'predicted_price'},
                     inplace=True)
  return scored_results
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,389 questions
{count} vote

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.