List of Practical
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.
10 Write a program to plot a bar chart from the medals won by four countries. Make sure that bars are
separately visible.
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.
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.