Linear Algebra, Math, Mathematics, Python, Jupyter Notebook.
tells you the number of values for each dimension. For a 2-dimensional array, it will give you the number of rows and the number of columns. Let’s find the shape of our preceding 2-dimensional array A. Since A is a Numpy array (it was created with the array() function) you can access its shape