DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
1. Write a Python program to perform linear search
Program
arr = eval(input("Enter array elements: "))
key = int(input("Enter a element to be search: "))
for i in range(len(arr)):
if key == arr[i]:
print(f"Element {key} found at position {i}")
break
else:
print("Element not found")
Output
Enter array elements: 1,2,3,4,5
Enter a element to be search: 4
Element 4 found at position 3
1
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
2. Write a Python program to insert an element into a sorted list
Program
lst = eval(input("Enter sorted list: "))
x = int(input("Enter a element to be insert: "))
for i in range(len(lst)):
if x < lst[i]:
lst.insert(i,x)
break
else:
lst.append(x)
print(lst)
Output
Enter sorted list: [1,2,3]
Enter a element to be insert: 4
[1, 2, 3, 4]
2
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
3. Write a python program using object oriented programming to
demonstrate encapsulation, overloading and inheritance
Program
class A:
_z = 20
def init (self,x):
self._x = x
class B(A):
def init (self,y):
self._y = y
def add (self,other):
x = self._y + other._x
return B(x)
def str (self):
return"({0}, {1})".format(self._y,self._z)
obj1 = A(7)
obj2 = B(5)
print(obj2 + obj1)
Output
(12, 20)
3
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
4. Implement a python program to demonstrate
1) Importing Datasets
2) Cleaning the Data
3) Data frame manipulation using Numpy
4
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
5
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
5. Implement a python program to demonstrate the following using NumPy
a) Array manipulation, Searching, Sorting and splitting.
b) broadcasting and Plotting NumPy arrays
6
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
7
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
8
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
6. Implement a python program to demonstrate Data visualization with
various Types of Graphs using Numpy
9
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
10
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
7. Write a Python program that creates a mxn integer array and Prints its
attributes using matplotlib
11
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
12
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
8. Write a Python program to demonstrate the generation of linear
regression models.
13
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
9. Write a Python program to demonstrate the generation of logistic
regression models using
14
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
15
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
10. Write a Python program to demonstrate Time series analysis with
Pandas.
16
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
17
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
11. Write a Python program to demonstrate Data Visualization using
Seaborn
18
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
19
DATA ANALYTICS LAB WITH MINI-PROJECT 22MCAL36
20