IP Program File
IP Program File
2.) Wap to enter 7 numbers and store only 2 digits, 3 digits numbers in a
list and then create a series NUMS from that list.
3.) Wap to enter name and price of 5 items and store in a dictionary where
name is key and price its value and then create a series PRICE from
that dictionary.
a 45
b 43
c 38
d 36
e 22
Series:A
Amit 70
Bob 75
Sita 60
Amaan 65
Series:B
Amit 80
Bob 50
Ratna nan
Amaan 85
English Biology IP
Amit 79 89 87
Bob 77 78 69
Sita 76 67 77
Amaan 67 88 87
11.) For the above data frame ‘ar ‘do the following :
a. Display the shape and dimension.
d. To count the non-NAN values for each column and each rows
separately
e. To display number of rows
Amit 79 89 88 89 87
Bob 77 56 NAN 78 69
Sita 76 NAN 38 67 77
Do the following:
Table : TEACHER
SID NAME DEPT gender EXPERIENCE
Table: Salary
SID BASIC ALLOWANCE DA
101 12000 1000 300
104 23000 2300 500
107 32000 4000 500
114 12000 5200 1000
109 42000 1700 200
105 18900 1690 300
130 21700 2600 300
(iii) Display all the records in from salary where DA is between 100 and 500.
(iv) Increase basic salary by 20% where experience is more than 10.
(v) Delete the records name contains letter ‘o’ from teacher table.
(vii) Display the number of male and female teachers separately from teacher
table.
(viii) Display NAME and DA of all staff who are in Accounts department and
having more than 10 years of experience and DA is more than 300.
(ix) Display the NAME and SALARY of all staff whose salary is more than average
salary. (SALARY=BASIC +ALLOWANCE+ DA)
(x) Display the minimum and maximum allowance from salary table.