Printing boolean numpy array without separators
Printing boolean numpy array without separators Question: I would like to print this array: a = np.array([[0, 1, 0, 0], [1, 1, 1, 1], [0, 0, 0, 0], [0, 0, 0, 0]], dtype=bool) as .8.. 8888 …. …. without iterating over each element in a double loop. A terse function like this one: def showGrid(g): …