Practical File Questions (2023-24)
Practical File Questions (2023-24)
1 Write a code to create a series object using the Python sequence [4, 6, 8,
10]. Assume that pandas is imported as alias name pd.
4 Consider the series object S that stores the contribution of each section,
as shown below:
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.
5 Give an a list namely area that stores the area of some state in km.
Area=[34567,890,450,780,990,100,1299]
Write python code to perform the following operations :
(1)Create a series object namely Ser1 using the list area given below .
(2) Print the largest three areas from the series Ser1 .
(3)Print the smallest three areas from the series Ser1.
8 Write a program to create a Data Frame Quarterly Sales where each row
contains the Quarterly Sales of TV, Freeze and AC. Show the DataFrame
after deleting details of Freeze.
14
15
Consider the given dataframe and answer the following questions: