Skip to content

Commit a850007

Browse files
authored
Update how-to-use-labeled-dataset.md
fixes https://github.com/MicrosoftDocs/azure-docs/issues/101297
1 parent 06768ac commit a850007

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

articles/machine-learning/v1/how-to-use-labeled-dataset.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,11 @@ from azureml.core import Dataset, Workspace
7878
animal_labels = Dataset.get_by_name(workspace, 'animal_labels')
7979
animal_pd = animal_labels.to_pandas_dataframe()
8080

81-
# download the images to local
82-
download_path = animal_labels.download(stream_column='image_url')
83-
8481
import matplotlib.pyplot as plt
8582
import matplotlib.image as mpimg
8683

8784
#read images from downloaded path
88-
img = mpimg.imread(download_path[0])
85+
img = mpimg.imread(animal_pd['image_url'].iloc(0).open())
8986
imgplot = plt.imshow(img)
9087
```
9188

0 commit comments

Comments
 (0)