fields.buffers.core.HDF5Buffer.transpose#
- HDF5Buffer.transpose(axes=None, *args, inplace: bool = False, **kwargs) BufferBase [source]#
Return a transposed copy of this buffer.
The transposition is performed using the NumPy-compatible array returned by as_repr().
- Parameters:
axes (
tuple
ofint
, optional) – By default, reverses the dimensions. If specified, reorders the axes accordingly.*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 new transposed buffer.
- Return type:
BufferBase