Ultimate access to all questions.
You write a Python script that processes data in a comma-separated values (CSV) file and plan to run it as an Azure Machine Learning experiment. The script loads the data and determines the number of rows it contains using the following code:
import pandas as pd
df = pd.read_csv('./data.csv')
row_count = len(df)
You need to record the row count as a metric named row_count
that can be retrieved using the get_metrics
method of the Run object after the experiment completes.
Which code should you use?