that should be unpacked into a boolean output array
The shape of the output array is either 1-d (if axis is None) or the same shape as the input array with unpacking done along the axis specified.
numpy.packbits
numpy.binary_repr