NumPy - Array Manipulation
Which of the following is the correct syntax to add a new axis at position 0 using
np.expand_dims() on array arr?np.expand_dims() on array arr?axis parameter specifies where the new axis is inserted. Position 0 means before the first dimension.axis=0 adds the new axis at the start. Other options add it elsewhere or cause errors.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions