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.
37,798 questions
{count} vote