0% found this document useful (0 votes)
4 views2 pages

File Work - Unit 4 (Statistical Data)

Uploaded by

Subhadra Mondal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

File Work - Unit 4 (Statistical Data)

Uploaded by

Subhadra Mondal
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Unit -4 (Statistical Data )

Program#1.​ NumPy Array-1D

Problem definition: Write a program to convert a Python list to a NumPy array and display
the array. Also, display the cube of each element in the array.

Program# 2.​ NumPy Array-2D

Problem definition: Write a program to create a 2D array from a list of multiples of 10 using
NumPy. Display the 2-D array and perform the following display operations:
a)​ Dimensions of an array
b)​ The shape of an array
c)​ Size of an array

Program# 3.​ Operations on NumPy Array-2D

Problem definition: Write a program to create a matrix of 3x3 from 11 to 20. Display the
matrix and perform the operations given below:
a)​ Find the maximum element of the array.
b)​ Find out row-wise minimum elements.
c)​ Find out column-wise maximum elements
d)​ Find the Sum of all array elements
e)​ Find the average of all array elements

Program# 4.​ Menu driven- Data Analysis

Problem definition: Write a menu-driven program to calculate the mean, mode and median
for the given data: [51,6,1,3,4,51,6,2,7,8,6,51,4,6,5,1,2,3,4]

Program# 5.​ DATAFRAME (pandas packge)

Problem definition: Write a program to create a data frame to store data of candidates who
appeared in interviews. The data frame columns are name, score, attempts, and qualify
(Yes/No). Assign row index asC001, C002, and so on.

Program# 6​ DATAFRAME (pandas packge) - Criteria display

Problem definition: Write a program to create a dataframe named player and store their
data in the columns like team, no. of matches , and average runs. Assign player name as
row index and display only those player details whose score is more than 1000.

You might also like