0% found this document useful (0 votes)
5 views2 pages

DOC-20240202-WA0003.

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)
5 views2 pages

DOC-20240202-WA0003.

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/ 2

Set-A

PART= A
Pandas and Data Visualization 8

1
a. Write a program in Python to create the following dataframe named as ‘studentDF' storing the
details of Student given below and display it. 3
Student
SNAME STYPE DOB FEES STREAM
101 Sonia Captain 2007-04-12 60000 Science
102 Kavita Captain 2006-06-08 35000 Commerce
103 Babita Vicecaptain 2006-10-15 80000 Science
104 Namit Head 2007-09-30 125000 Arts
105 Sunita Captain 2006-11-10 25000 Arts
106 Arshi Vicecaptain 2007-08-17 40000 Arts

b.Write Python code to perform the following operations on the above dataframe ‘StudentDF.
1. Insert a new column “CLASS” with data as [XI,XII,XII,XI,XII,XI] ½
2. Display the data of columns SNAME andFEES. ½
3. Display last 3 rows of the above dataframe ½
4. Remove the column ‘’STREAM”. ½
c.Plot a Line Chart between Sname and Fees with suitable title and labels on x-axis and y-axis 3

PART-B
7
SQL Queries
2 Consider the above table as “Student” and first column as ‘StuId’ and Answer the following SQL queries.
i. Display StuId, Name and stream of all the employees whose fees is more than 50000. 1
ii. Display the number of students and total fees in each Stream with their stream. 1
iii. Display the stream and highest fees in each Stream that stream has more than one student. 1
iv. Display the details of all students in descending order of their Fees. 1
v. Display the different stream type of the students in uppercase. 1
vi. Display the Name of those students having ‘ita’ anywhere in their name. 1
vii. Display Student name and dayname of their date of Birth. 1

3 Practical File 5
4 Project Work 5
5 Viva Voce 5

Signature of External Examiner Signature of Internal Examiner

Examiner No-
Examiner no.
Set-B
PART= A
Pandas and Data Visualization 8
1
a. Write a program in Python to create the following dataframe named as ‘FacultyDF storing the 3
details of Faculty given below and display it.

FNAME SUBJECT DOJ PERIODS EXPERI


ENCE
1001 RAVI SHANKER ENGLISH 12/03/2008 24 15
1002 RIYA RANA PHYSICS 01/19/2010 26 14
1003 LISA ALEX ENGLISH 01/01/2012 27 22
1004 ASHOK RAJ MATHS 24/08/2012 24 11
1005 GANGA NAKUL PHYSICS 16/07/2014 20 9
1006 HARISH BHATT CHEMISTRY 19/10/2015 27 18
b.Write a menu based program to perform the following operations on the above dataframe ‘FacultyDF.
1. Insert a new row “1007” with data as [‘RAJAT ROY’,’BIOLOGY’,’06/12/2022’,28,6]
2. Display the data of first three rows
3. Display the data of columns FNAME and Subject.
4. Remove the data of row 1002.
½
c.Plot a bar Chart between FNAME and Experience with suitable title and labels on x-axis and y-axis
½
½
½
3

PART-B
7
SQL Queries
2 Consider the above table as “Faculty” and first column as ‘FacId’ and Answer the following SQL queries.
I. Display FacultyId, Name and Subject of all Faculties taking periods more than 25. 1
II. Display Subject with number of Faculties in each Subject. 1
III. Display the Subjects wise maximum and minimum teaching experience. 1
IV. Display the FactId and Faculty name in descending order of periods they take. 1
V. Display the different Subjects in lowercase. 1
VI. Display the Name of Faculty whose name start with ‘R’. 1
VII. Display Faculty name and month name of their joining. 1

3 Practical File 5
4 Project Work 5
5 Viva Voce 5

Signature of External Examiner Signature of Internal Examiner

Examiner No-
Examiner no.

You might also like