Comments

Numpy Tutorial_4

 


Introduction to NumPy (Tutorial 4): NumPy Array Slicing

[2, 3, 3]
[[ 1  2  3]
 [ 6  7  8]
 [22 33 44]]
[[1]]
[[6 7 8]]
[[ 1  2  3]
 [ 6  7  8]
 [22 33 44]]
44
[[1]]
['first', 'second', 'third', 'fourth', 'fifth', 'sixth']
['seventh', 'eight', 'ninth', 'Ten']
Ten
[]
['Ten']
['eight', 'ninth']
['second', 'fifth', 'eight']
['first', 'fifth', 'ninth']
['Ten', 'ninth', 'eight', 'seventh', 'sixth', 'fifth', 'fourth', 'third', 'second', 'first']
['Ten', 'eight', 'sixth', 'fourth', 'second']
[[ 1  2  3  4  5]
 [ 6  7  8  9 10]]
7
1
[[2 3 4]]
[[1]]
[[ 7  8  9 10]]
[[11 99 99 99 99]
 [99 99 99 99 99]]
[[ 1  2  3  4  5  6]
 [ 3  4  5  6  7  9]
 [45 33 22 77 66 98]]
[[66 98]]
[[  1   2   3   4   5   6]
 [  3   4   5   6 888 888]
 [ 45  33  22  77 888 888]]
Share on Google Plus

About Inas AL-Kamachy

    Blogger Comment
    Facebook Comment

0 Comments:

Post a Comment