0% found this document useful (0 votes)
17 views3 pages

List of Practical

Uploaded by

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

List of Practical

Uploaded by

annavarshan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

LIST OF PRACTICAL

Write a program to create a Series object using an Nd-array that has 10 elements in the range 100
1.
to200?

2. Write a program to create a Series object using an Nd-array that has 10 elements in the range 100
to200?

3. Write a program to create a Series object using a dictionary that stores the number of students in
each section of class 12 in your school?

A 4300
B 6500
C 3900
D 6100

Write code to modify the amount of section ‘A’ as 3400 and for section ‘C’ and
‘D’ as 5000. Print the changed object.

4. Write a program to create a Data Frame Quarterly Sales where each row contains the Quarterly
Sales of TV, Freeze and AC. Show the Data Frame after deleting details of Freeze.

5. Write a program to create a Data Frame to store Roll Number, Name and Marks of five students.
Print the Data Frame and its transpose.

Write a program to create a Data Frame from a CSV file. Display the shape (Number of rows and
6.
columns) of the CSV file.

7. Write a program to create a Data Frame which contains Roll Number, Name, Height and Weight of
05 students. Create a CSV file using this Data Frame
8. Given the school result data, analyses the performance of the students in Accountancy and
Business studies using bar graph.

9. Given datasets population of India and Pakistan in the given years. Show the population of India
and Pakistan using line chart with title and labels of bothaxis.

Year 1960 1970 1980 1990 2000 2010


Population of Pakistan 44.91 58.09 78.07 107.7 138.5 170.6
Population of India 449.48 553.57 696.783 870.133 1000.4 1309.1

10 Write a program to plot a bar chart from the medals won by four countries. Make sure that bars are
separately visible.

11 A survey gathers height and weight of 60 participants and recorded


the participants’ ages as:
Ages =
[1,1,2,3,5,7,8,9,10,10,11,13,13,15,16,17,18,19,20,21,21,23,24,24,24,25,25,
25,25,26,26,26,27,27,27,27,27,29,30,30,30,30,31,33,34,34,34,35,36,36,37,37,3
7,3
8,38,39,40,40,41,41]
Write a program to plot a histogram from above data with 20 bins.

12 Write a program to create data series and then change the indexes of the Series object in any
random order.

13 In an online contest, two 2-player teams’ point in 4 rounds are stored in two Data Frames as shown
below:
Team 1’spoints(df1) Team 1’s points(df2)
P1 P2 P1 P2
1 700 490 1 1100 1400
2 975 460 2 1275 1260
3 970 570 3 1270 1500
4 900 590 4 1400 1190

Write a program to calculate total points earned by both the teams in each
round.
14
Write a program to create a Data Frame with two columns name and age. Add a new column
Updated Age that contains age increased by 10years.

15 Given a Data Frame( df ) asunder


City Schools
Delhi 7654
Mumbai 8700
Kolkata 9800
Chennai 8600

Write a program to print Data Frame one row at a time. Also display first two
rows of City column and last two rows of Schools column

16 Write a program to plot a horizontal bar chart from heights of some students.

17 Write SQL commands on the basis of the following tables.


Table: PROUDCT

PID Product name Manufacturer Price


TP01 Talcum Powder LAK 40
FW05 Face Wash ABC 45
BS01 Bath Soap ABC 55
SH06 Shampoo XYZ 120
FW12 Face Wash XYZ 95

You might also like