Ad8311 Data Science Laboratory
Ad8311 Data Science Laboratory
Ad8311 Data Science Laboratory
Abdul Rauf
21BTE3CSE100
CONTENTS
3
1 Working with Numpy arrays
6
2 Working with Pandas data frames
8
3 Develop python program for Basic plots using Matplotlib
13
4 Develop python program for Frequency distributions
14
5 Develop python program for Variability
18
7 Develop python program for Normal Curves
24
10 Develop python program for Simple Linear Regression
Abdul Rauf
21BTE3CSE100
Ex no: 1 Working with Numpy arrays
AIM
ALGORITHM
Step1: Start
Step2: Import numpy module
Step3: Print the basic characteristics and operactions of array
Step4: Stop
PROGRAM
Result:
Thus the working with Numpy arrays was successfully completed.
Abdul Rauf
21BTE3CSE100
Ex no: 2 Create a dataframe using a list of
elements. Aim:
ALGORITHM
Step1: Start
Step2: import numpy and pandas module
Step3: Create a dataframe using the
dictionary Step4: Print the output
Step5: Stop
PROGRAM
Result:
Thus the working with Pandas data frames was successfully completed.
Abdul Rauf
21BTE3CSE10002
Ex. No.:3 Basic plots using Matplotlib
Aim:
ALGORITHM
Step1: Start
Step2: import Matplotlib module
Step3: Create a Basic plots using Matplotlib
Step4: Print the output
Step5: Stop
Program:3 a
Abdul Rauf
21BTE3CSE10002
Output:
Result:
Thus the count the frequency of occurrence of a word in a body of text is often needed
during text processing and Conditional Frequency Distribution program using python was
successfully
completed.
Abdul Rauf
21BTE3CSE10002
Ex. No.:4 Frequency distributions
Aim:
To Count the frequency of occurrence of a word in a body of text is often needed during
text processing.
ALGORITHM
Program:
Abdul Rauf
21BTE3CSE10002
Output:
Result:
Thus the basic plots using Matplotlib in Python program was successfully completed.
Abdul Rauf
21BTE3CSE10002
Ex. No.:5 Averages
Aim:
To compute weighted averages in Python either defining your own functions or using Numpy
ALGORITHM
Program:
Result:
Thus the compute weighted averages in Python either defining your own functions or using
Numpy was successfully completed.
Abdul Rauf
21BTE3CSE10002
Ex. No.: 6. Variability
Aim:
To write a python program to calculate the variance.
ALGORITHM
Program:
Result:
Thus the computation for variance was successfully completed.
Abdul Rauf
21BTE3CSE10002
Ex. No.:7 Normal Curve
Aim:
To create a normal curve using python program.
ALGORITHM
Program:
Output:
Abdul Rauf
21BTE3CSE10002
Result:
Thus the normal curve using python program was successfully completed.
Abdul Rauf
21BTE3CSE10002
Ex. No.: 8 Correlation and scatter plots
Aim:
To write a python program for correlation with scatter plot
ALGORITHM
Program:
Abdul Rauf
21BTE3CSE10002
Output
Result:
Thus the Correlation and scatter plots using python program was successfully completed.
Abdul Rauf
21BTE3CSE10002
Ex. No.: 9 Correlation coefficient
Aim:
To write a python program to compute correlation coefficient.
ALGORITHM
Program:
Result:
Thus the computation for correlation coefficient was successfully completed.
Abdul Rauf
21BTE3CSE10002
Ex. No.: 10 Simple Linear Regression
Aim:
To write a python program for Simple Linear Regression
ALGORITHM
Program:
Abdul Rauf
21BTE3CSE10002
Output:
Result:
Thus the computation for Simple Linear Regression was successfully completed.
Abdul Rauf
21BTE3CSE10002