Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 03ec132

Browse files
authored
Merge pull request #5 from mhmohona/patch-5
Update 4_NumPy_8_Subsetting 2D NumPy Arrays.py
2 parents 71a99b2 + a26fd29 commit 03ec132

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎4_NumPy_8_Subsetting 2D NumPy Arrays.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@
1010
print(np_baseball[49,:])
1111

1212
# Select the entire second column of np_baseball: np_weight
13-
np_weight =np_baseball[:,1]
13+
np_weight_lb =np_baseball[:,1]
1414
# Print out height of 124th player
15-
print(np_baseball[124:1])
15+
print(np_baseball[123, 0])

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /