Skip to content

Commit ae8c266

Browse files
authored
Update 4_NumPy_5_Subsetting NumPy Arrays.py
1 parent 365887a commit ae8c266

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

4_NumPy_5_Subsetting NumPy Arrays.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
import numpy as np
55

66
# Store weight and height lists as numpy arrays
7-
np_weight = np.array(weight)
8-
np_height = np.array(height)
7+
np_weight_lb = np.array(weight_lb)
8+
np_height_in = np.array(height_in)
99

1010
# Print out the weight at index 50
11-
print(np_weight[50])
11+
print(np_weight_lb[50])
1212
# Print out sub-array of np_height: index 100 up to and including index 110
13-
print(np_height[100:111])
13+
print(np_height_in[100:111])

0 commit comments

Comments
 (0)