AI ML Exp 1-1
AI ML Exp 1-1
Questions
1 Familiarisation of Basic Python Libraries
Numpy
Create two 1d arrays and perform the following array operations using ‘numpy’.
• Element-wise addition
• Element-wise subtraction
(a) • Element-wise multiplication
• Element-wise division
• Element-wise exponentiation
Array Indexing
Write a Python program to create an array of 5 integers and display the array items. Find the
(b) sum of 1st element, middle element and last element by accessing the elements through
indexes.
Write a Python program to find the pair of elements with the maximum remainder from a
(c)
given array of integers.
Create a 2d array and find the product of element on the first row, second column and
(d)
element on third row, first column.
(e) Create a 2d array and print the second last element from the last row.
PANDAS
Create a dictionary with the following data for 10 persons and store it as csv file.
(f)
Explicitly create the index also.