The Anubhav portal was launched in March 2015 at the behest of the Hon'ble Prime Minister for retiring government officials to leave a record of their experiences while in Govt service .
NumPy (short for Numerical Python) is a
Python library used for numerical and scientific computing. It provides:
A powerful N-dimensional array object (ndarray)
Tools for performing mathematical, logical, and statistical operations on arrays
Support for linear algebra, Fourier transforms, and
random number generation
NumPy forms the
foundation of data science and machine learning in Python — libraries like
pandas, scikit-learn, TensorFlow, and
PyTorch all rely on NumPy internally.
Why Use NumPy?
Here’s why NumPy is preferred over plain Python lists:
We use cookies to ensure you have the best browsing experience on our website. By using our site, you
acknowledge that you have read and understood our
Cookie Policy &
Privacy Policy.
ndarray)NumPy forms the foundation of data science and machine learning in Python — libraries like pandas, scikit-learn, TensorFlow, and PyTorch all rely on NumPy internally.
Why Use NumPy?
Here’s why NumPy is preferred over plain Python lists:
Example:
Installing NumPy
You can install NumPy using pip:
Then import it in your Python code:
Key Features of NumPy
ndarray)Simple Example
Output:
In Short
ndarray