Posts

Showing posts from August 26, 2020

Using Pandas in Python

Image
Hello all, This is the fourth 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 Using Numpy in Python To install pandas in your python environment, please use the below command pip install pandas Please refer the videos below for detailed explanation on Pandas After you have installed Pandas, please refer the following notebook to understand on how to use Pandas functionalities. In [1]: import pandas as pd import os Creating a DataFrame ¶ In [2]: data1 = [ 1 , 2 , 3 ] data2 = [ 4 , 5 , 6 ] data3 = [ 7 , 8 , 9 ] pd . DataFrame ([ data1 , data2 , data3 ], columns = [ 'a' , 'b' , 'c' ], index = [ 'row1' , 'row2' , 'row3' ]) Out[2]: a b c ...