Accessing Folder Data Assets in Azure ML
Short answer
A Use mltable.load() to access the registered folder data asset and convert it to a Pandas DataFrame.
Question
You plan to use the folder data asset for data wrangling during interactive development.
You need to access and load the folder data asset into a Pandas data frame.
Which method should you use to achieve this goal?
Key Takeaways
Tests the distinction between creating a new MLTable definition from raw files versus loading an existing registered data asset using the standard load function.
This question addresses how to access a registered folder data asset containing CSV files for interactive development. The correct method is mltable.load() because it handles the URI of an already registered asset, unlike factory methods that create new definitions.
Common mistake: Candidates often choose B (mltable.from_delimited_files()) because the source contains CSVs. This is incorrect because factory methods are for creating new definitions from paths, not accessing registered assets.
Expert Analysis
Why the Answer Is Correct
The correct approach is A. When you have a registered data asset (identified by its URI or name), you usemltable.load to retrieve it. This function returns an MLTable object that represents the registered resource, which can then be converted to a Pandas DataFrame using .to_pandas_dataframe. This is the standard pattern for accessing assets in the workspace.Why the Other Options Are Wrong
Options B, C, and D are factory methods used to create new MLTable definitions from specific file types (delimited, parquet, delta lake) at a given path. They are not designed to load an existing registered asset. Using them would require re-pointing to the underlying storage path rather than using the asset reference.Community Comment Notes
Community consensus supports option A. One user noted thatmltable.load("path/to/folder_asset") is the correct syntax for this scenario. Another user emphasized that factory methods like from_delimited_files are for creating definitions, not accessing registered assets. Exam Strategy
Always distinguish between 'creating' a table definition and 'loading' an existing asset. If the question mentions a 'registered' asset, look for load() or direct asset references, not factory methods.
Frequently Asked Questions
Why not use mltable.from_delimited_files() for CSVs?
Can I use mltable.load() with any file type?
mltable.load() works with registered assets regardless of the underlying file format, as long as the asset is properly defined in the workspace.Discussion 3 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 3
-
guy3hil 👍 2 Answered ACorrect answer A = mltable.load() -------------------------------------------------------------------------- import mltable tbl = mltable.load("path/to/folder_asset") df = tbl.to_pandas_dataframe() -------------------------------------------------------------------------------------- Why not the other options ?? B. mltable.from_delimited_files() → Used to create an MLTable definition from raw delimited files, not to load an already registered folder asset. C. mltable.from_parquet_files() → Same idea, but for Parquet files. Not applicable here since the asset is CSV. D. mltable.from_delta_lake() → Used for Delta Lake sources, not CSV.
-
PurpleBlue 👍 1 Answered Bmltable.from_delimited_files() is specifically designed to create an MLTable object from delimited text files (like CSVs) by pointing it at a path — in this case, your registered folder data asset. Once created, you can call .to_pandas_dataframe() on the resulting MLTable object to materialize it as a Pandas DataFrame for wrangling
-
pandaji 👍 1 Answered AWhy the other options are incorrect B. mltable.from_delimited_files() Used to create a new MLTable from CSV or other delimited files. Not used when you're accessing an already registered data asset. C. mltable.from_parquet_files() Used for Parquet files only. D. mltable.from_delta_lake() Used for Delta Lake datasets.
Reader comments & corrections
No reader corrections yet — spotted an error or have a note? Share it below.