Posts

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...

Python for Data Science Series - Part 2

Image
Hello all, This is the second article in the series  Python for Data Science . If you have missed the first article , please refer it for better understanding. 1. Creating and Managing Virtual Python Environments - Anaconda: Anaconda documentation page is well documented in explaining creating and managing virtual conda enviroments. Video Tutorial on the same is available here. Here are few of those commands which will be handy. Creating Python Virtual Environment:           To create a virtual environment with name ENVNAME and with python version PYTHONVERSION conda create --name ENVNAME python=PYTHONVERSION Cloning Virtual Environment from existing one:     To make a copy of your existing virtual environment (OLDENVNAME) to a different name (NEWENVNAME) conda create --name NEWENVNAME --clone  OLDENVNAME   List the available Virtual Environment     To get the available virtual environments in your PC, use the following c...

Basics in Python for Data Science Series - Part 1

Image
  Hello all, This is the first article in the series  Python for Data Science . As a prerequisite to this tutorial series, it is expected that python is already installed in your computer.  In case if you haven't installed python, Please follow the instructions given in the page  or in the below video tutorial. This tutorial is focused mainly on the areas where coding is needed by Data Scientist for daily use. I will try to cover as much as possible. In case if i miss somethings, we are open for your suggestions. The style of this tutorial would allow the user to get hands on and learn while coding. This style of learning is proven to be effective and encourage to be fast paced. Run your Python Code from Notepad and Command Prompt The following steps would guide you to run your python code from Notepad. 1. Open run window by pressing Windows + R and then type cmd for opening command prompt 2. Navigate to the folder path where your python code resides. for example, my...