Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
taking subarray of numpy array
Suren
Programming language:
Python
2021-06-25 07:15:42
0
Q:
taking subarray of numpy array
Kenshin
Code:
Python
2021-07-18 18:20:31
>>> a array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) >>> a[:2,:2] array([[1, 2], [4, 5]])
1
Tags
array
sub
Related
numpy subarray
sum of a numpy array
python select random subset from numpy array
numpy array get a value from a 2D array
numpy init array
How to select parts of a numpy array
convert list of lists to numpy array matrix python
numpy array from list
sum every ith element numpy
how to create multidimensional array in python using numpy
python remove one element from numpy array
New to Communities?
Join the community