How to apply Operations on Arrays using NumPy Library

NumPy Library provides lot of useful function that you can apply on n-dimensional arrays(ndarray) for scientific or mathematical computations. In the subsequent sections we will discuss following functions provided by NumPy Library after importing it in our program. shape( ) If you have an ndarray and you want to determine its dimensions then you may use shape( ) for this purpose as shown in example below; From the above output result, i.e. ‘Out[3]: (3,3)’ after using shape( ) function, you find that you have created an array of dimension 3x3 . Arithmetic Operations (+, -, *, /) You can use arithmetic operations i.e. addition, subtraction, multiplication and division to ndarray object. Using arithmetic operations when you use scalar value as second operand with first o...