Select one answer per question. Submit to see the explanation.
bits = BitArray(np.arange(12, dtype=np.uint8).reshape(2, 2, 3, 1) % 2, 1) repacked = bits.reshape(2, 6)