Insert a new size 1 partition dimension in place.
The new partition dimension is inserted at position 0, i.e. it becomes the new slowest varying dimension.
Parameters : |
|
---|---|
Returns : | None |
Examples
>>> pm.dimensions
['dim0', 'dim1']
>>> pm.expand_dims('dim2')
>>> pm.dimensions
['dim2', 'dim0', 'dim1']