Posts

Showing posts from August 25, 2020

Using Numpy in Python

Image
Hello all, This is the third article in the series  Python for Data Science . If you are new to this series, we would recommend you to read our previous articles Python for Data Science Series - Part 1 Python for Data Science Series - Part 2 To install numpy in your python environment, please use the below command pip install numpy Please refer the video below for detailed explanation on Numpy After you have installed numpy, please refer the following notebook to understand on how to use Numpy functionalities. In [1]: import numpy as np Defining a Numpy Array ¶ In [2]: a = np . array ([ 10 , 20 , 30 ]) In [3]: a Out[3]: array([10, 20, 30]) In [4]: type ( a ) Out[4]: numpy.ndarray In [ ]: dir ( a ) In [6]: a . shape Out[6]: (3,) In...