Skip to content

Commit 36a5f04

Browse files
Emphasize 2 input arguments
1 parent 817b267 commit 36a5f04

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/machine-learning/algorithm-module-reference/execute-python-script.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ The following example shows how to upload an image file in the **Execute Python
159159
# imports up here can be used to
160160
import pandas as pd
161161

162-
# The entry point function can contain up to two input arguments:
162+
# The entry point function must have two input arguments:
163163
# Param<dataframe1>: a pandas.DataFrame
164164
# Param<dataframe2>: a pandas.DataFrame
165165
def azureml_main(dataframe1 = None, dataframe2 = None):
@@ -215,7 +215,7 @@ The **Execute Python Script** module contains sample Python code that you can us
215215
The **Python script** text box is pre-populated with some instructions in comments, and sample code for data access and output. You must edit or replace this code. Be sure to follow Python conventions about indentation and casing.
216216

217217
+ The script must contain a function named `azureml_main` as the entry point for this module.
218-
+ The entry point function can contain up to two input arguments: `Param<dataframe1>` and `Param<dataframe2>`
218+
+ The entry point function must have two input arguments: `Param<dataframe1>` and `Param<dataframe2>`, even when these arguments are not used in your script.
219219
+ Zipped files connected to the third input port are unzipped and stored in the directory, `.\Script Bundle`, which is also added to the Python `sys.path`.
220220

221221
Therefore, if your zip file contains `mymodule.py`, import it using `import mymodule`.

0 commit comments

Comments
 (0)