DP-100 · Question #193
DP-100 Question #193: Real Exam Question with Answer & Explanation
Sign in or unlock DP-100 to reveal the answer and full explanation for question #193. The question stem and answer options stay visible for context.
Question
You write a Python script that processes data in a comma-separated values (CSV) file. You plan to run this script as an Azure Machine Learning experiment. The script loads the data and determines the number of rows it contains using the following code: You need to record the row count as a metric named row_count that can be returned using the get_metrics method of the Run object after the experiment run completes. Which code should you use?
Options
- Arun.upload_file(`row_count', `./data.csv')
- Brun.log(`row_count', rows)
- Crun.tag(`row_count', rows)
- Drun.log_table(`row_count', rows)
- Erun.log_row(`row_count', rows)
Unlock DP-100 to see the answer
You've previewed enough free DP-100 questions. Unlock DP-100 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.