I’m quite new to Azure ML and Python. I created some datasets using both the Azure ML GUI and the Python SDK:
Now I want to load these datasets in a Pandas Dataframe. But when I run
Dataset.get_all(workspace=workspace)
I got an empty list.
Do I miss something? I’m using the version 0.2.7. of azureml and Version 1.46.0. of azureml-core.
I also tried
workspace.datasets
But also got an empty result.
3
Answers
We need to have the datasets in the workspace in the form of tabular. If the dataset is in another format, we can’t retrieve the datasets in the workspace.
I am choosing Local files
Code:
Then using the workspace details, we can connect and get dataset details.
Output:
Achieved the result.
There’s a way to do it.
You have to upload the files manually.
In the azure ML studio:
Then you call:
It returns all datasets, both File and Tabular.
Assuming that you have the dataset in AzureML Data already saved, here is python code you can run from anywhere to access the dataset, authenticating as a ServicePrincipal:
The config.json file could look like this: