PYTHON PANDAS (SERIES)
NUMPY:
NumPy or also known as Numerical Python is a python package that can be used
for numerical data analysis and scientific computing. It uses multidimensional
array object and has functions and tools working with these arrays.
PANDAS:
> PANDAS (or PANel DAta) is a high level data manipulation tool used for
analyzing data.
> It is very easy to import and export data using pandas library which has a rich
set of functions.
> it is built on packages like NumPy and Matplotlib and gives us a single and
convenient place to do most of our data analysis and visualization work.
DATA STRUCTURE IN PANDAS:
1. SERIES
PYTHON PANDAS (SERIES) 1
, 2. DATAFRAME
SERIES:
series is a one dimensional array containing a sequence of values of any data
type. it has numeric data labels starting from zero.
1. CREATING A SERIES FROM SCALAR VALUES:
import pandas as pd
series1=pd.Series([10,20,30])
print(series1)
OUTPUT:
2. CREATING A SERIES WITH USER DEFINED INDEXING:
import pandas as pd
series1=pd.Series([10,20,30,40], index=["MATHS","ENGLISH","SCIEN
print(series1)
PYTHON PANDAS (SERIES) 2
NUMPY:
NumPy or also known as Numerical Python is a python package that can be used
for numerical data analysis and scientific computing. It uses multidimensional
array object and has functions and tools working with these arrays.
PANDAS:
> PANDAS (or PANel DAta) is a high level data manipulation tool used for
analyzing data.
> It is very easy to import and export data using pandas library which has a rich
set of functions.
> it is built on packages like NumPy and Matplotlib and gives us a single and
convenient place to do most of our data analysis and visualization work.
DATA STRUCTURE IN PANDAS:
1. SERIES
PYTHON PANDAS (SERIES) 1
, 2. DATAFRAME
SERIES:
series is a one dimensional array containing a sequence of values of any data
type. it has numeric data labels starting from zero.
1. CREATING A SERIES FROM SCALAR VALUES:
import pandas as pd
series1=pd.Series([10,20,30])
print(series1)
OUTPUT:
2. CREATING A SERIES WITH USER DEFINED INDEXING:
import pandas as pd
series1=pd.Series([10,20,30,40], index=["MATHS","ENGLISH","SCIEN
print(series1)
PYTHON PANDAS (SERIES) 2