fields.buffers.core.HDF5Buffer.squeeze#
- HDF5Buffer.squeeze(*args, axis=None, inplace: bool = False, **kwargs) BufferBase [source]#
Remove singleton dimensions from this buffer.
- Parameters:
axis (
int
ortuple
ofint
, optional) – If specified, only squeezes the given axes. Otherwise, all single-dim axes are removed.*args – Additional positional arguments forwarded to
from_array()
.inplace (
bool
, optional) – If True, values for file, name, and overwrite are ignored; the dataset underlying the calling buffer is directly replaced and the object is updated and returned in-place.**kwargs – Additional keyword arguments forwarded to and
from_array()
. If inplace isTrue
, then these are forwarded toreplace_dataset()
.
- Returns:
A squeezed buffer.
- Return type:
BufferBase