Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
numpy subarray
nocluenoob
Programming language:
Python
2021-07-03 21:48:43
0
Q:
numpy subarray
vladimiro
Code:
Python
2021-06-03 02:56:00
>>> a array([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) >>> a[:2,:2] array([[1, 2], [4, 5]])
0
Tags
sub
Related
taking subarray of numpy array
numpy array from list
number of rows or columns in numpy ndarray python
numpy init array
python numpy argmax
How to select parts of a numpy array
sum of a numpy array
python select random subset from numpy array
numpy.array
random array numpy
np.arange
New to Communities?
Join the community