exam questions

Exam DP-100 All Questions

View all questions & answers for the DP-100 exam

Exam DP-100 topic 2 question 62 discussion

Actual exam question from Microsoft's DP-100
Question #: 62
Topic #: 2
[All DP-100 Questions]

HOTSPOT
-

You use an Azure Machine Learning workspace. The default datastore contains comma-separated values (CSV) files.

The CSV files must be made available for use in experiments and data processing pipelines. The files must be loaded directly into pandas dataframes.

How should you complete the code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
evangelist
5 months ago
given answer is correct
upvoted 2 times
...
Lion007
10 months, 1 week ago
Correct, the answer is: Dataset and Tabular.from_delimited_files To make CSV files available for use in Azure ML experiments and data processing pipelines, and specifically for them to be loaded directly into pandas dataframes, the appropriate method from the Dataset class is Tabular.from_delimited_files. - Tabular.from_delimited_files is designed for structured files like CSVs and will load the data into a format that can be easily converted to pandas dataframes, which is exactly the requirement. Wrong answers: - File.from_files is used when you are working with file datasets that are which a collection of references to the files directly without loading their contents into a structured format, rather than providing a dataset that represents the data in a tabular format like CSV. - Tabular.from_pandas_dataframe is used to create a tabular dataset from an existing pandas dataframe in memory, not from files in a datastore.
upvoted 4 times
...
NullVoider_0
10 months, 3 weeks ago
Sorry for the previous response. I've double-checked and updated the code. The answer is correct. from azureml.core import Workspace, Dataset ws = Workspace.from_config() blob_ds = ws.get_default_datastore () target_data = [(blob ds, 'data/files/archive/*.csv')] data1 = Dataset.Tabular.from_delimited_files(path=target_data) registered_datal datal.register(workspaws, name data1')
upvoted 4 times
...
NullVoider_0
10 months, 3 weeks ago
The mentioned answer is partially correct. The actual code is given below. from azureml.core import Workspace, Dataset ws = Workspace.from_config() blob_ds = ws.get_default_datastore () target_data = [(blob ds, 'data/files/archive/*.csv')] data1 = Dataset.Files.from_files(path=target_data) registered_datal datal.register(workspaws, name datal')
upvoted 4 times
...
orionduo
1 year, 2 months ago
It seems correct https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/machine-learning/v1/how-to-create-register-datasets.md#create-a-tabulardataset
upvoted 2 times
...
ajay0011
1 year, 7 months ago
correct
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago