You can create 2d array in NumPy with the following code. If you want to learn Python then I will highly recommend you to read This Book.
2d Array
import numpy as np a = np.array([[1, 2, 3, 4], [5, 6, 7, 8]]) print(a) print(a.ndim)
Output: [[1 2 3 4] [5 6 7 8]] 2
People are also reading:
What is Computer Vision? Examples, Applications, Techniques
Top 10 Computer Vision Books with Python
Books for Machine Learning (ML)