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

Class 12 IP Practical TASK

Uploaded by

hmmhaan09
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)
20 views3 pages

Class 12 IP Practical TASK

Uploaded by

hmmhaan09
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
You are on page 1/ 3

Class 12 practical

Note:
1. Write code for all questions and output wherever required.
2. Attempt all questions individually in separate pages don’t start other question from same
page. After completing one question start another question from next page.
3. Use practical copy one side line and back side white page.
4. Try to use computer practical copy.
5. Use copy with hard cover if possible.
6. Write practical questions with serial number and date and write in neat and clean hand
writing.
7. Date should be between July to November.
8. Write index with questions and page number.
9. If copy is having certificate page then complete that also.
10.Submit your records upto 31 Dec. 2023
11.These questions are having page number and example number mentioned with them, don’t
write page number and example number in practical copy. It is for your help only.
Practical Questions
1. Create a series object s1 having a,b,c,d,e,f as index and any amount as data and print all attributes of series
object.(p-15)
2. Create series objects from different array functions. And arrange them in ascending and descending order.
3. Create 2 series objects 1 for population 2nd for avgincome not create another series object percaptia income
from these 2 objects and print them.
4. Write codes to create dataframe from
a. Dictionary with list.
b. Nested list
c. Nested dictionary
d. Series
e. Array
f. And from other dataframe
5. Create a dataframe empdf with 5 rows and columns (empno, deptno, ename, salary, address, bonus, phno)
Now perfrom following operations
a. Display rows 2 to 4.
b. From rows 2 to 4 display deptno,ename and salary.
c. From rows 1 to 5 display all columns
d. Display rows 1,3,5 and columns empno,ename and address.
e. Delete column phno
f. Delete rows 3,4.
g. Add a new column commission with different data
h. Modify data of salary column
i. Display salary of 4th row.
j. Rename index as (a,b,c,d,e) and column labels as (eno,dno,name,sal,add,bon,ph).
k. Access records of row b to d and column dno to sal.
l. Modify data of 2nd row.
m. Update salary of 4th row to 75000.
6. Create a dataframe sales for 5 years(y1,y2,y3,y4,y5) having four rows(q1,q2,q3,q4) and display the dataframe
row wise(iterrows()).(page no 76,77)
7. Create a dataframe sales for 5 years(y1,y2,y3,y4,y5) having four rows(q1,q2,q3,q4) and display the dataframe
column wise(iteritems()).
8. Create a dataframe sales for 5 years(y1,y2,y3,y4,y5) having four rows(q1,q2,q3,q4) or create dataframe of
your choice and perform following dataframe functions in both axis.
a. max()
b. min()
c. sum()
d. mean()
e. median()
f. mode()
g. std()
h. var()
i. mad()
j. count()
k. quantile()
l. describe()
m. info()
n. sort the dataframe
o. cumsum()
p. cumprod()
q. cummax()
r. cummin()
9. consider following dataframe (Example 34 and 35 page no 112, 113) summarize how many projects are being
handled by each city.
10. Create dataframe (page 114 write codes for dataframe ) ontutd and compute total classes on 2 fields, tutor
and country wise(page 117 example 39).
11. Example 44 page 126 write question and codes only.
12. Create 2 dataframes df1 and df2 and perform each types of join.(page 129)
13. Perform left merge on two dataframes order and cust(page 136).
14. Example 51 (page 139)
15. Write codes to plot line chart with all attributes.(example 3 and 4 page 171,174)
16. Write codes to create scatter chart for given random data (example 10 page 181)
17. Write codes to create bar chart (example 16 page 190).
18. Write codes to create pie chart for charity collection and perform explode also. (example 20 page no 197).
19. Write codes to create bar chart with legend and label(page 206).
20. Write codes to create histogram (example 29 page no 213).
21. Write codes to create boxplot (example 32 page 220)
22. A.Write codes to access employee.csv in python(example 4 page 251).
B. write codes to export emp.csv (example 10 page 256).
23. Write codes to access student table of MySql in python(example 11 page 260).
24. Write codes to write dataframe into mysql table(example 15 page 268).
25. Write query to create table emp having following structure.
Empno integer primary key
Ename character not null
Address character default ‘Delhi’
Salary decimal restrict <25000
Dob date
Email character
Phno character
Now insert 5 records.
26. Consider emp table write query for following.
a. Create employee database
b. Use database
c. Display list of tables from school database
d. Show list of tables
e. Display structure of table
f. Display structure of table while creation
g. Display distinct salary.
h. Display records of employees whose address may be pune, Mumbai or delhi and whose salary is in the
range of 50000 to 100000.
i. Sort the records of emp table on ascending order of job and descending order of salary.
j. Display records of employees whose name starts with r.
k. Display name,salary,address of employees whore address is having g at 4 th position.
l. Display records of employees whose dob is not known.
m. Display salary , address and ename of employees who are getting some salary.
n. Display sal + bonus as total salary.
o. Delete the table
p. Delete the database.
27. Consider emp table and write query for following
a. Update salary by 20 percent and change address from pune to delhi.
b. Vacant the table.
c. Delete records of employees whose name stats with m.
d. Delete records of employees whose salary is null.
e. Rename emp table to employee.
f. Write query for all operations of alter.
28. Write query for all functions of string, numeric, date and time.
29. Write query for TCL commands.
30. Write queries for all types of joins.(only query)

You might also like