IMPLEMENTATION OF PANDAS IN MACHINE LEARNING AT HACKVEDA !!!
Sep 7, 2018 · 3 min read

→ So let us now have a brief what PANDAS are :
Pandas is a software library written for the python programming language for data manipulation and analysis .
It offers data structures and operations for manipulating numerical tables .
Pndas is a python module that makes data science easy and effective .
Pandas deals with the programming data structures
* Series
* DataFrame
a. Series : They are one -dimensional labelled array capable of holding data of any type (integer , string , float , python objects)
b. DataFrame : A DataFrame is a two dimensional data structure i.e data is aligned in a tabular fashion in rows and columns .
To implement pandas , firstly import them :

SERIES :

- It prints the array with their indexes value by the help of series .

- you can set index value upto your choice by declairing it above .
DataFrame :

- DataFrame is used to make table and store data sequencially .
Reading (csv , excel , text ) files :

- Pandas help us to read any file just by copying the link from where it is downloaded ending with the file name with its extension .
- Ex : data.csv
- this will read all the data stored in that particular file .

- text files are printed with commas (,) . So to seperate them we use : sep=”\t”

- To read a specific sheet from excel file that name of the sheet is mentioned in the last .
Read a file from URL :

- Any URL you want to read can be read by importing urllib and copying that url here will get all the data stored in that url will be printed .
Slicing :

- Slicing lets us print the required data from that particular file .
- Ex :

- df.head : it will display top 5 rows from the file .

- df.bottom : it will display bottom rows of the file .
- df.columns : it will display all the columns present in the file .

- df.dtypes : it will tell you the data types used .
- UNIQUE : This will print only the unique values .

- this will let you print the particular column you want with its values .
— — — — — — — — — — — — — — x — — — — — — — — — — — — — — —