Introduction

Installation
To install NumPy:
Refer to my article.
To install SciPy:
Use command: pip install scipy

If you get the below error:

Use command - python -m pip install --upgrade pip

To install MatplotLib
Use the command: python -mpip install -U matplotlib

ABOUT NUMPY
Numerical python (N-dimensional array package)
Numpy adds python support for large, multi-dimensional arrays and matrices, along with a large library of high-level mathematical functions to operate on these arrays.
For detailed information about Numpy, refer to my article on Numpy- Array.
Example
- import numpy as np
- arr = np.array( [[ 1, 2, 3],[ 4, 2, 5]] )
- print("Array is of type: ", type(arr)) # Printing type of arr object
- print("No. of dimensions: ", arr.ndim) # Printing array dimensions (axes)
- print("Shape of array: ", arr.shape) # Printing shape of array
- print("Size of array: ", arr.size) # Printing size (total number of elements) of array
- print("Array stores elements of type: ", arr.dtype) # Printing type of elements in array
Output

About SciPy
Scientific python (Fundamental library for scientific computing)
Scipy is a collection of mathematical algorithms and convenience functions built on the Numpy extension of Python. It adds significant power to the interactive Python session by providing the user with high-level commands and classes for manipulating and visualizing data.




Join the conversation! Your thoughts help the community grow.