Insert a new size 1 axis in place.
The new axis is always inserted at position 0, i.e. it becomes the new slowest varying axis.
The identity of the new axis.
None
See also
squeeze, swapaxes, transpose
Examples
>>> pm.shape (2, 3) >>> pm.expand_dims('dim2') >>> pm.shape (1, 2, 3)
cf.PartitionMatrix.copy
cf.PartitionMatrix.ndenumerate
Enter search terms or a module, class or function name.