NumPy or Numeric Python is a powerful library for scientific calculations. It works with ndarray (array object in NumPy) that could be single or multi- dimensional. To perform different calculations sometimes we may need to reduce dimension of a multidimension ...