The DataPath object used in the example is not imported or created in this example. This documentation should show where this Object comes from.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Actually, it looks like this DataPath should just be omitted.
@MayMSFT remember when we asked for more guidance on this? Or just never mention it at all?
DataPath is not required. The following is sufficient. Will update the documentation. Sorry for the confusion.
from azureml.core import Dataset, Datastore
# create file dataset from files in datastore
datastore = Datastore.get(workspace, 'workspaceblobstore')
datastore_path = [
(datastore, 'animals/dog/1.jpg'),
(datastore, 'animals/dog/2.jpg'),
(datastore, 'animals/dog/*.jpg')
]
file_dataset = Dataset.File.from_files(path=datastore_path)
DataPath remove change is appearing in live docs.
Thanks so much. We will now proceed to close this issue.
Most helpful comment
DataPath is not required. The following is sufficient. Will update the documentation. Sorry for the confusion.