blosc2.NDArray.squeeze#
- NDArray.squeeze() None #
Remove the 1’s in array’s shape.
- Returns:
out
- Return type:
None
Examples
>>> import blosc2 >>> shape = [1, 23, 1, 11, 1] >>> # Create an array >>> a = blosc2.full(shape, 2**30) >>> a.shape (1, 23, 1, 11, 1) >>> # Squeeze the array >>> a.squeeze() >>> a.shape (23, 11)