numpy.expand_dims — NumPy v1.22 Manual
numpy.org › doc › stablenumpy.expand_dims ¶ numpy.expand_dims(a, axis) [source] ¶ Expand the shape of an array. Insert a new axis that will appear at the axis position in the expanded array shape. Parameters aarray_like Input array. axisint or tuple of ints Position in the expanded axes where the new axis (or axes) is placed.