-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStep1_dataframe1.py
23 lines (18 loc) · 1000 Bytes
/
Step1_dataframe1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# The script MUST contain a function named azureml_main
# which is the entry point for this module.
# imports up here can be used to
import pandas as pd
# The entry point function can contain up to two input arguments:
# Param<dataframe1>: a pandas.DataFrame
# Param<dataframe2>: a pandas.DataFrame
def azureml_main(dataframe1 = None, dataframe2 = None):
# Execution logic goes here
dataframe1.columns=['Pregnancies', 'GlucoseConcentration', 'BloodPressure', 'TricepsFoldThickness', 'SerumInsulin', 'BMI', 'DiabetesPedigree', 'Age', 'HasDiabetes']
print('Input pandas.DataFrame #1:\r\n\r\n{0}'.format(dataframe1))
# If a zip file is connected to the third input port is connected,
# it is unzipped under ".\Script Bundle". This directory is added
# to sys.path. Therefore, if your zip file contains a Python file
# mymodule.py you can import it using:
# import mymodule
# Return value must be of a sequence of pandas.DataFrame
return dataframe1,