Skip to content

Commit 0d9c7de

Browse files
authored
Update data_loading_tutorial.py
Trying to fix the deprecation of pandas as_array.
1 parent 48e5ccc commit 0d9c7de

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)