Skip to content

Commit a8035e7

Browse files
authored
Merge pull request #848 from pytorch/brianjo-patch-fix-pandas-as_array-dep
Update data_loading_tutorial.py
2 parents 48e5ccc + 0d9c7de commit a8035e7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

beginner_source/data_loading_tutorial.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@
6767

6868
n = 65
6969
img_name = landmarks_frame.iloc[n, 0]
70-
landmarks = landmarks_frame.iloc[n, 1:].as_matrix()
70+
landmarks = landmarks_frame.iloc[n, 1:]
71+
landmarks = np.asarray(landmarks)
7172
landmarks = landmarks.astype('float').reshape(-1, 2)
7273

7374
print('Image name: {}'.format(img_name))

0 commit comments

Comments
 (0)