Loading CSV Data Assets into Pandas with MLTable
Short answer
B mltable.from_delimited_files()
Question
Key Takeaways
The question tests knowledge of MLTable source builders; the trap is confusing file formats (CSV vs. Parquet) or assuming a generic load method handles specific formatting without explicit configuration.
To load a CSV file from a folder data asset into a Pandas DataFrame using Azure Machine Learning, you must use the mltable.from_delimited_files() method. Community consensus confirms that CSV is a type of delimited file, making option B the correct choice over parquet or generic loading methods.
Common mistake: Candidates often select C (mltable.from_data_lake()) because they recognize the 'folder' concept, but this method is for accessing Azure Data Lake Storage paths directly rather than building an MLTable object from local or registered assets for wrangling. Others might pick D if they misunderstand the initialization process.
Expert Analysis
Why the Answer Is Correct
The correct answer is B, mltable.from_delimited_files(). In Azure Machine Learning, CSV files are classified as delimited files. The mltable library provides specific builder methods to create MLTable objects from different data sources. Since the input is a CSV file within a registered folder data asset, from_delimited_files() is the appropriate method to define the schema and load the data.
Why the Other Options Are Wrong
Option A (from_parquet_files()) is incorrect because it is designed specifically for Parquet format, not CSV. Option C (from_data_lake()) is typically used to reference paths in Azure Data Lake Storage Gen2, not for creating an MLTable instance from a registered workspace data asset for interactive wrangling in this context. Option D (load()) is not the standard method for constructing an MLTable from raw files; it is generally used to load existing MLTable definitions.
Community Comment Notes
Comments [1], [3], [4], and [5] all correctly identify B as the answer. Comment [3] explicitly links the logic: "csv=>delimited file," which is the key conceptual step. Comment [2] initially voted for C but provided a link to the official documentation for from_delimited_files, inadvertently supporting the correct answer despite their vote.
Community Votes
80% of anonymous learners picked answer B. Votes are pick records left by other test-takers — they are not the verified answer.
Discussion 6 contributions
Compiled from public community threads and reader submissions, lightly edited for clarity. Handles and vote tallies are shown as recorded, and comments reflect the views of individual contributors.
From public community threads 6
-
3a0b61c 👍 1 Answered Ccorrect https://learn.microsoft.com/en-us/python/api/mltable/mltable?view=azure-ml-py#mltable-from-delimited-files
-
avinyc 👍 1 Answered Bmltable.from_delimited_files()
-
evangelist 👍 1 Answered Bcsv=>delimited file
-
nicorg5 👍 1answer is correct
-
sai384957324 👍 1 Answered BB is correct
Show 1 more comment
-
401d299 👍 1 Answered Bcorrect
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.