## Numpy – Get the Number of Columns of an Array

In this tutorial, we will look at how to get the number of columns of a 2D array in Numpy with the help of some examples. How to get the number of columns in Numpy? You can use the Python built-in len() function or the numpy.ndarray.shape property to get the number of columns of a …