numpy.char.chararray.ndim attribute char.chararray.ndim Number of array dimensions. Examples >>> import numpy as np >>> x = np.array