Skip to content

Commit 7b1947f

Browse files
committed
removed URI code sample
1 parent d2ee092 commit 7b1947f

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

articles/machine-learning/tutorial-explore-data.md

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -173,26 +173,9 @@ An Azure Machine Learning datastore is a *reference* to an *existing* storage ac
173173
174174
## Access your data in a notebook
175175
176-
You want to create data assets for frequently accessed data. You can access the data using the URI as shown below. However, as mentioned previously, it can become difficult to remember these URIs. Additionally, you still need to substitute the datastore name, folder, and filename values for your specific resources.
176+
You want to create data assets for frequently accessed data. You can access the data using the URI as described in [Access data from a datastore URI, like a filesystem](how-to-access-data-interactive.md#access-data-from-a-datastore-uri-like-a-filesystem). However, as mentioned previously, it can become difficult to remember these URIs.
177177
178-
This example shows how to read a CSV file from an Azure Machine Learning datastore using the same configuration values from your `ml_client`:
179-
180-
```python
181-
import pandas as pd
182-
183-
# Using the same values from ml_client configuration
184-
subscription_id = ml_client.subscription_id
185-
resource_group = ml_client.resource_group_name
186-
workspace_name = ml_client.workspace_name
187-
datastore_name = 'workspaceblobstore' #this is the default datastore
188-
path_on_datastore = my_path
189-
190-
# Construct the datastore URI
191-
datastore_uri = f"azureml://subscriptions/{subscription_id}/resourcegroups/{resource_group}/workspaces/{workspace_name}/datastores/{datastore_name}/paths/{path_on_datastore}"
192-
df = pd.read_csv(datastore_uri)
193-
```
194-
195-
An alternative is to use the `azureml-fsspec` library, which provides a file system interface for Azure Machine Learning datastores. Here's an easier way to access the CSV file in Pandas:
178+
An alternative is to use the `azureml-fsspec` library, which provides a file system interface for Azure Machine Learning datastores. This is an easier way to access the CSV file in Pandas:
196179
197180
> [!IMPORTANT]
198181
> In a notebook cell, execute this code to install the `azureml-fsspec` Python library in your Jupyter kernel:

0 commit comments

Comments
 (0)